I am trying to serve up static content for some web development, with a few lines of erb to simulate what the real server will do. I already did this with WEBrick here: http://ceronio.net/2011/06/nice
Is it possible to create one model that stands for two different objects? for example: I have a blog, on which, I will publish articles on pure text and screencasts with only video.
<td 开发者_开发技巧class=\"run_time\"><%= l.text_field :run_time, :class => \"line_item_run_time\" %></td>
I have an RHTML view in Rails, where the output is coming from my MongoDB collection. The data is outputted correctly using an iteration block, but whenever I try and have HTML tags in my database, th
HI I would like to have latest news/updates in the homepage of my website but i don\'t want to have to change the HTML code every time i want add a new news line or make a change, is there anyway i
I ha开发者_如何学Cve one input field and 2 buttons, each button performs a different function. i want one of the buttons to take the value of the input field and add it to a specified Url (as a param)
I keep getting this error compile error /Users/dean/src/carolian/app/views/layouts/events.html.erb:10: syntax error, unexpected \',\', expecting \')\'
We have a user model which :has_one detail.In a form_fo开发者_如何转开发r a user, I want a drop-down to select the user\'s details\' time_zone.
I\'ve been looking around for a solution to this questi开发者_StackOverflow社区on for the last couple of days.It\'s a simple annoyance, but I hate not knowing how to do things...