I am using Rails 3.0.1 with Devise for user authentication. I am
trying Rails out so if the answer is blindingly obvious please bear
with me.

I have an index page, which has links to the sign up/sign in forms.
All the logic works fine but what I can't work out is how to display
the forms in the index page rather than opening the forms and losing
the formatting of the index page.

Here's the code (I'm using HAML which I know not everyone likes !)

    .box
      - if user_signed_in?
        Signed in as #{current_user.email}.
        .quiet Not you ?
        \#{link_to "Sign out", destroy_user_session_path}
      - else
        = link_to "Sign up", new_user_registration_path
        or
        \#{link_to "Sign in", new_user_session_path}

So what I'm trying to do is once the link is clicked, the relevant
form is displayed in the .box div rather than on a new page.

Any tips or pointers would be gratefully received.

Thanks

-- 
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