I am doing a partial render in the view from one controller. Here is the 
code ->     <%= render :template => 'restaurants/new' %>. I want the other 
controller new action code to do it.  Is there a way to call an action in 
another controller ? I don't want to duplicate the same code in two 
controllers.

-- 
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@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msg/rubyonrails-talk/-/H1BxDgwDjr4J.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to