resource_controller
resource_controller copied to clipboard
Rails RESTful controller abstraction plugin.
Moved contents of rails/init.rb into init.rb to avoid Rails 3 deprecation warnings.
The instructions under "Get It!" contain the wrong git repo path, hence the instructions don't work. For newbies, this might be confusing.
Hi, after installing the resource_controller plugin, our app has stopped to work in other env than development. The first page load after server start is raising "ActionView::TemplateError: undefined local variable...
I've noticed that after an Ajax request (create.wants.js / request.xhr?), when I refresh the page or go to another page, I see the flash message that was set by the...
It would be really nice to be able to use the all the r_c hooks with custom actions. For instance, I'd like to be able to add an action to...
in /lib/resource_controller.rb Lines: begin require_dependency 'application_controller' rescue LoadError => e require_dependency 'application' end The problem with this sort of check is that if you have a load error that has...
I installed the resource_controller as a gem and added the config.gem to the environment.rb. However, I'm getting the following error message: ]/opt/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:443:in `load_missing_constant' /opt/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:80:in`const_missing_with_dependencies' /opt/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:92:in `const_missing' /Users/conradwt/rails.dir/examples/purchase/app/controllers/admin/purchase_orders_controller.rb:1:in`'
When I try: rescue_from ActiveRecord::RecordNotFound, :with => :something The resource controller simply don't catch it, and it are returning a 200(ok) status when a record wasn't found. It breaks my...
Hello, I have an application that serves two different template sets depending on the URL it is called with. For this purpose I have (in config/initializers/mime_types.rb) ``` Mime::Type.register_alias "text/html", :iframe...
we often use the pattern of scoping all of our controllers by objects that are not explicitly set as parents. This is a bit like the begin_of_association_chain method in inherited_resources...