I decided to create a dedicated blog, in English, to talk about this framework that I like more and more. Did you guess its name ? Yeah, Ruby on Rails.
Concise, elegant, logical: it’s a pleasure to develop stuff so quickly.
class PostsController < ApplicationController
respond_to :html, :json
def index
@posts = Post.all.page(params[:page]).per(10)
respond_with @posts
end
end
Most of all, what’s nice with Rails, it’s his community and the many great projects that grow around it. So I’ll show some gems I use or want to use. And of course, I’ll talk about plain Ruby too, from time to time.
See ya.