Render as html from a remote link on Rails

Posted by francordie on Stack Overflow See other posts from Stack Overflow or by francordie
Published on 2012-11-23T08:53:56Z Indexed on 2012/11/23 11:00 UTC
Read the original article Hit count: 229

On my registration form i want to show a modal (of twitter-bootstrap) when the user has a successfull signup to tell him to check his email so i put "remote: true" on my form and render a .js.erb wich shows the modal, on my controller.

BUT, in case of inputs errors i need to render the page as html to refresh de form showing those errors.

Can I call the controller from the remote form as JS but render as html? (or any other idea to do what i want)

Thanks!

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about ruby-on-rails-3