3 ms·
Here's the same in Camping, using plain Ruby: class Blog < R '/blog/(\d+)' def service(id) @blog = Blog.get(id); super end def get(id) rend
by judofyr 15y ago
Here's the same in Camping, using plain Ruby:
class Blog < R '/blog/(\d+)'
def service(id) @blog = Blog.get(id); super end
def get(id) render :blog end
def put(id) @blog.update_attributes(@input) end
end