search for: listline0

Displaying 4 results from an estimated 4 matches for "listline0".

2006 Apr 07
3
RJS removing content of div, but not div itself
Hi, I''m creating a list of ingredients on a page. When the user clicks the ''Add Ingredient'' button a record gets added to the db and the ingredient gets added to the page. On the page, each record is represented by a <div> with three <span>s inside. One of the <span>s has a link_to_remote to ''delete'' the ingredient. When the link
2006 Apr 08
1
How To ??? change class of DIV
...x. And I''m almost there ;-) I''m about to set off on the last stage and would appreciate any advice that would set me off in the right direction. On the page, each record is represented by a <div>. Each <div> has id = "item#{record.id}" with class = either Listline0 or Listline1 which are defined in my stylesheet to be of different colors. Each <div> three <span>s inside. One of the <span>s has a link_to_remote to ''delete'' the item. When the link gets used, the record gets deleted from the db and the <div> gets dele...
2007 Feb 17
5
render collection with index
Is there any method for getting the current iteration (for changing row colors) in the category partial? <%=render(:partial => "category", :collection => @categories)%> thanks, andy -- Andrew Stone --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post
2006 Mar 01
5
scaffold.css and Rails tutorial problem
...n-bottom: 0; padding: 5px; } #ErrorExplanation ul li { font-size: 12px; list-style: square; } /* START:css */ .ListTitle { color: #244; font-weight: bold; font-size: larger; } .ListActions { font-size: x-small; text-align: right; padding-left: 1em; } .ListLine0 { background: #e0f8f8; } .ListLine1 { background: #f8b0f8; } /* END:css */ #----------------------------------------------------------------------------- The code in app/views/layouts/store.rhtml produces this in the browser display: #-----------------------------------------------...