Question

I'm pretty new to Rails and I'm having a little trouble. I'm attempting to use jquery-modal-rails to present modal views in my app. I've followed the directions here on GitHub PERFECTLY, and I've done it several times, but for some reason I keep getting this error:

undefined method `link_to_modal'

Specifying this line:

<%= user.first_name + " " + user.last_name %>

Can someone PLEASE help!

I'm using version 4.0.3 of Rails. If you need any more info, just let me know.

Was it helpful?

Solution

I figured out what was wrong! I was using a stylesheet partial that wasn't loading my

application.js

and my

application.css

After I got rid of the partial and put that code back in my

application.html.erb

everything is working perfectly(using Fancybox).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top