rhtml
Mongrel: how to process erb in .rhtml file
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[详细]
2023-03-22 00:18 分类:问答2 User-defined classes for 1 model in Rails
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.[详细]
2023-03-19 15:14 分类:问答Getting a value from Javascript on Ruby
<td 开发者_开发技巧class=\"run_time\"><%= l.text_field :run_time, :class => \"line_item_run_time\" %></td>[详细]
2023-02-28 22:38 分类:问答RHTML displaying HTML tags on output
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[详细]
2023-01-30 12:16 分类:问答Updating webpage widget without changing code?
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[详细]
2023-01-05 18:50 分类:问答adding value of input box to URL as a param after a button is pressed?
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)[详细]
2023-01-05 13:26 分类:问答Error when following RoR Video
I keep getting this error compile error /Users/dean/src/carolian/app/views/layouts/events.html.erb:10: syntax error, unexpected \',\', expecting \')\'[详细]
2023-01-05 08:15 分类:问答How do I use a nested attribute with a form_for 's select method?
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.[详细]
2023-01-04 09:32 分类:问答How to output text in rthml without <%=variable%>
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...[详细]
2022-12-09 02:05 分类:问答