2
votes
0answers
85 views

Rendering hidden element from view in Rails, HAML

Simple example, I need to render div with some text hidden by default. I'll do something like: = link_to 'Display text', '#' .div_with_text{ style: 'display: none;' } = 'Some text!' And after ...
5
votes
3answers
181 views

Setting bgcolor in Ruby. What's the proper way to do it?

<p style="background-color:#<%= debate.bg_color %>;" > be_color is a method of Debate that returns a string like 45FFFF. Although it does what I want, this seems like a tremendously bad ...
1
vote
1answer
96 views

Request for Code Review of small Ruby on Rails application ( Some CSS advise too please)

I am pretty new to Rails and in fact this is the first thing I have made. This is a todo list type app. It lives here at heroku. I also have an github repository here. All my js and rails is a big ...