Garrett Lancaster
------------------------------------------------------------------------ Mauro <mailto:[email protected]> January 11, 2011 3:58 PM Yes, you can omit respond_with. Most of my apps are entirely without respond_with calls unless I have an explicit need for xml, etc.If I omit respond_with in some actions like create and destroy raise an error of missing template.--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.------------------------------------------------------------------------ Garrett Lancaster <mailto:[email protected]> January 11, 2011 3:14 PMYes, you can omit respond_with. Most of my apps are entirely without respond_with calls unless I have an explicit need for xml, etc.------------------------------------------------------------------------ Mauro <mailto:[email protected]> January 11, 2011 3:02 PM If I don't want xml results but only html can I omit respond_with in some actions? For example index from: respond_with(@sectors = Sector.all) becomes only @sectors = Sector.all isn't it?
-- 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.
<<inline: compose-unknown-contact.jpg>>
<<inline: postbox-contact.jpg>>

