Radar: when I try to reference an assset like asset_path('global/img/foo.jpg') doesn't work, it says that is not present in the asset pipeline, but when I import it with asset asset_path('img/foo.jpg') it works. Is there another way to specify absolute path (including ancestor directory) using asset_path or another helper?
I was trying to create a new object using the default scaffold restful method (create) like POST /posts with data: title=asdasd body=asdasd and I wasn't able to do that because of the sanitizer, do you have any reference in how to setup parameters in this case?
I was only able to create the object when i used parameters like posts[title] posts[body]
@tfitts: maybe using scopes http://guides.rubyonrails.org/active_record_querying.html#scopes
thank you alfie, your advice make me realize that I was reasoning wrong about the api