Damián M. González
2014-Jun-16 01:40 UTC
Colloring HTML elements depending on what action is called
Hi fellows. I'm requiring a suggestion, a hand, since can't solve this. What I'm trying to do is this: I have 2 actions by a controller. There's an active layout for both(application.html.erb). There's two HTML elements defined in the layout which I want to be collored diferently if one action is called or the another. I suspect that can be done with Javascript, but must be an easy way. What I though is that when I call one of the actions, it must render a specific CSS file, which overwrite the style of the HTML elements, giving to them the color I want, but....I can't give with it, can't get it work correctly. Can you give me a clue about what should I do, I've been around this a whole day. -- 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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/bde3a508b8efc5a47f975724847d0982%40ruby-forum.com. For more options, visit https://groups.google.com/d/optout.