search for: inherited_resources

Displaying 8 results from an estimated 8 matches for "inherited_resources".

2011 Jul 14
0
subclasses with inherited_resources?
I''m trying out inherited_resources and so far so good. However, one problem I''ve run into is that it''s very difficult to customize inherited_resource behaviour in subclasses. Looking through the source I see it uses things like undef_method and class_attribute. For example, if I have the following controllers: cl...
2010 Nov 30
2
Did I miss a meeting?!
I''ve just stumbled (literally, while I was trying to fix a glitch I was having after upgrading Aegis...) on the Inherited Resources gem... why did no-one tell me?! ;-) Is everyone else using some form of controller base-class? Am I the last on this bus! https://github.com/josevalim/inherited_resources -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/J...
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
2012 Mar 07
0
LoadError: Expected X to define on gem upgrade
...39;''').split(''::'') namespaced_class = [namespaced_classes.first, namespaced_classes.last].join(''::'').singularize namespaced_class.constantize rescue NameError nil end From: https://github.com/josevalim/inherited_resources/blob/master/lib/inherited_resources/class_methods.rb So I guess Rails is trying to load the model Base and is wrongly deciding that my existing base.rb file should take precedence or something, but since it''s not namespaced to just Base it raises this error. How can I fix this? I'...
2010 Sep 22
8
ActiveScaffold and partials
I was thinking of doing partials as I did in the simple Rails application I worked on today. But, since I''m using ActiveScaffold, I didn''t find any *.html.erb in the views folder of the Rails application that I need to make my partials! How can I work with partials in ActiveScaffold? Thanks. -- Posted via http://www.ruby-forum.com/. -- You received this message because you
2013 Mar 21
3
Announce: Puppet Dashboard 1.2.23 Available
...vel because browsers treat /../ as equivalent to /. ================================== ## Puppet Dashboard 1.2.23 Changelog ## ================================== Aaron Stone (11): e56a1dd Travis for master branch. 5584128 Issue 11760: Remove unused Services view. 2c9c954 Bug fix: inherited_resources using deprecated {{mustache}} syntax instead of %{newer} syntax a4b73a9 Spec fix to 04b4c0f use should be_any instead of array indexing. b98ef7e Node and Group parameters rake tasks should not create duplicate entries. Fixes #13867, updates commit 0108c040 to behave as intended. 7...
2011 Apr 06
2
Puppetdashboard 1.1.0 spec file
...ecode is for 1.0.4 and tries to copy some directories, that don''t exist anymore. I did some remodelling in the file, so it creates a rpm now, but I''m not sure whether my "fix" is the only change needed. my change: replace -------------------- for plugin in authlogic inherited_resources jrails object_daddy resources_controller timeline_fu will_paginate; do cp -p -r vendor/plugins/$plugin %{buildroot}%{_datadir}/%{name}/ vendor/plugins/$plugin done cp -p -r vendor/gems %{buildroot}%{_datadir}/%{name}/vendor cp -p -r vendor/rails %{buildroot}%{_datadir}/%{name}/vendor ----------...
2010 Jan 25
9
skinny Controllers, fat models with REST?
Hi, I''m really new to rails, so i programmed some stuff and today i read some things about skinny Controllers, fat models. My Controllers are really fat now. So i''m asking myself how can i shrink my controllers and move the code to the models, especially in fact of REST e.g. in focus on error codes? code example: # POST /tasks # POST /tasks.xml def create @authorized