Do like this

   def my_method
# DO whatever here
render :nothing => true
   end

Sandip

On Thu, Jun 4, 2009 at 5:31 PM, JannaB <[email protected]> wrote:

>
> I need to be able to write a controller method that does nothing to
> the view. That is, when the method in the controller terminates,  I
> dont get an error in the browswer of:
>
> Template is missing
> Missing template blahbal/blahblah.erb in view path blah/views
>
> The termination of the controller I must write does nothing to the
> view (actually, I merely need to execute a little javascript, closing
> some divs, etc). Is there a way to do this? Thanks, Janna B
> >
>


-- 
Ruby on Rails Developer
http://sandip.sosblog.com
http://funonrails.wordpress.com
www.joshsoftware.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