search for: memberscontrol

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

2009 Sep 19
5
How to: redirect_to through a folder hierarchy (upwards)
Hi there, how do I tell the current controller correctly to redirect_to an action of another controller that is 1 level higher in the folder hierarchy than the current controller? How I have tried: Within the current controller (called ''incidents''), I have put: redirect_to :controller => ''members'', :action => ''show'', :id =>
2007 Dec 13
4
Attachment_fu problems on updates
On the creation of a member the member''s picture uploads as it should. However, when updating the member, while selecting a new picture, an error is thrown: can''t convert nil into String RAILS_ROOT: /Users/chris/Documents/Projects/Rails/CommunityCMS/trunk Application Trace | Framework Trace | Full Trace
2007 Dec 14
5
How do I mock params?
...the controller: Line 69: @photo = @member.build_photo(params[:photo]) unless params[:photo][:uploaded_data].blank? I got a little ahead of myself and wrote the code, and now have a bunch of errors telling me that: ------- 6) NoMethodError in ''Spec::Rails::Example::ControllerExampleGroup MembersController handling PUT /members/1 should find the member requested'' You have a nil object when you didn''t expect it! You might have expected an instance of ActiveRecord::Base. The error occurred while evaluating nil.[] /Users/chris/Documents/Projects/Rails/CommunityCMS/trunk/app/controll...