Hello I have this in a partial called _publish_status.rhtml <p><label for="page_published">Published</label> <%= radio_button(''page'', ''published'',true, :onclick =>remote_function(:update => "@page.published", :url => { :action => :publish_status, :id => 1 }) )%> </p> then in my controller: def publish_status @page.published = params[:id] @page.save end Everything works just like I want it to, but in my development log I see this: ActionController::MissingTemplate (Missing template C:/Documents and Settings/griggsk/user/ICA/config/../app/views/creation/publish_status.rhtml): Should I worry about this? How do I fix it? Thanks in advance -K --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Thanks works perfectly. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
> Hello I have this in a partial called _publish_status.rhtml > > <p><label for="page_published">Published</label> > <%= radio_button(''page'', ''published'',true, :onclick > =>remote_function(:update => "@page.published", > :url => { :action => :publish_status, :id => 1 }) )%> > </p> > > then in my controller: > > def publish_status > @page.published = params[:id] > @page.save > end > > Everything works just like I want it to, but in my development log I > see this: > ActionController::MissingTemplate (Missing template C:/Documents and > Settings/griggsk/user/ICA/config/../app/views/creation/publish_status.rhtml): > > Should I worry about this? How do I fix it?Well, if you don''t want to return any content/status to the browser indicating that it worked or not just add this to the end of your publish_status() method: render :nothing => true, :layout => false That will stop the error from showing up... --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---