Frederick Cheung wrote:
> On Mar 20, 12:00�pm, Jignesh Wadia <[email protected]>
> wrote:
>>
>> � � respond_to do |format|
>> � � � if @model.update_attributes(params[:model])
>> � � � � @model.user.roles.clear
>> � @model.user.roles << Role.find_or_create_by_name("model")
>> � � � � #flash[:notice] = "Model was successfully updated."
>> � � � � #format.html { redirect_to([:admin, @model]) }
>> � � � � #format.xml �{ head :ok }
> 
> in this branch you're not telling rails what to do - you've commented
> out all your format.bla calls
> 
> Fred

Okay now I have activated commented statements but still I am getting 
same error message ane redirecting to 505 error page.

Jignesh Wadia
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to