RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

jsvars rails plugin

I just released jsvars - a Rails plugin for taking some of the pain out of passing values from Rails -> JavaScript. This in the controller: jsvars[:loginPath] = login_path instead of this in a script tag: var loginPath = '<%= login_path %>';

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in