Display Partial in Modal with Foundation and Rails -


i trying create thought simple modal login window in rails using foundation. unfortunately isn't easy thought.

basically trying provide link user on main page when click, display devise signup form in modal window.

can me out? thanks!

here example of how foundation

<%= link_to "sign up", '#', data: {:'reveal-id' => 'signupmodal'} %> <div id="signupmodal" class="reveal-modal">     <%= render 'devise/registrations/new' %>   <a class="close-reveal-modal">&#215;</a> </div> 

you have rename devise/registrations/new devise/registrations/_new make partial.

you can find full set of options , documentation in foundation docs on reveal


Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -