On Jun 4, 2:44 pm, JannaB <[email protected]> wrote:
> I have a submit button on a form, which is in a div. When submitted,
> an email is sent, the div closes, all else remains the same in the
> view. Im just having a hard time in my mind fitting this into the
> Rails MVC paradigm here. How can I do this? -Janna
>

so you should be doing an ajax form submit that renders some
javascript to close the div and so on.

Fred


> On Jun 4, 9:39 am, Frederick Cheung <[email protected]>
> wrote:
>
> > 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