rubyonrailsin

A Ruby and Rails talk

Saturday, March 27, 2010


[Rails] Keeping it DRY. Same constant needed in js, sass, and rails

by rubyonrailsin 0 comments

Tag


Share this post:
Design Float
StumbleUpon
Reddit

I need a constant, X, to be known in a
jQuery script
In an .rb file in Rails
ins some css/SASS

How can I get this constant known in all three places?
--
Posted via http://www.ruby-forum.com/.

--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment

Subscribe feeds via e-mail

Blog Archive