search for: inheritedresourc

Displaying 3 results from an estimated 3 matches for "inheritedresourc".

Did you mean: inheritedresources
2011 May 28
4
how can I investigate when a rspec test fails?
For example: it "re-renders the ''new'' template" do # Trigger the behavior that occurs when invalid params are submitted Sector.any_instance.stub(:save).and_return(false) post :create, :sector => {} response.should render_template("new") end I have the new template under app/views/sectors but the test says: SectorsController POST
2011 May 10
0
Request format.all
...ails/rails/commit/7e280c3bff8ac25f1c1938aeaeb1d0b4c0fbb726 The use case is a show action such as: def show @attachment = Attachment.find(params[:id]) respond_to do |format| format.html format.any { download } end end The pros of using this approach is take advantage of Cancan and InheritedResources defaults. What do you thing about it? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubs...
2012 Mar 07
0
LoadError: Expected X to define on gem upgrade
...art the app: Expected ../app/model/store/base.rb to define Base base.rb defines base like: module MyApp class Store::Base end end I''ve done some digging and found that ActiveAdmin did some refactoring to derive everything from a BaseController. It also depends on another gem (InheritedResources), which does: self.resource_class ||= begin namespaced_classes = self.name.sub(/Controller/, '''').split(''::'') namespaced_class = [namespaced_classes.first, namespaced_classes.last].join(''::'').singularize n...