On Jun 4, 2:16 pm, JannaB <[email protected]> wrote:
> Actually...it DOES render nothing (as it says!). This just leaves me
> with a blank, white screen! I really need to have it DO nothing, and
> really RENDER nothing....just return from the controller's method
> without doing anything different to the view. -Janna B
>

I'm not entirely sure what you are after if render :nothing doesn't
fit. What are you expecting the http response to contain ?

Fred
> On Jun 4, 8:11 am, Sandip Ransing <[email protected]> wrote:
>
> > 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 
> > Developerhttp://sandip.sosblog.comhttp://funonrails.wordpress.comwww.joshsoftw...
--~--~---------~--~----~------------~-------~--~----~
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