html options for select_tag and select_date posted by Tan YL @ Tue, 16 Dec...
<%= select_date( Date.today, :prefix => ‘prom_date_end’, :order => [ :day,:month, :year], :class => “submit_date”)html source<select name="prom_date_end[day]"...
View Articlehtml options for select_tag and select_date posted by Tan YL @ Sun, 14 Dec...
Hi,I am having problems changing the font size of the select_tag and select_date tagsthis is what i have tried.<%= select_tag(:supermarket, options_for_select(@marketarray,params[:supermarket]),...
View Articlehighlight effect posted by Tan YL @ Thu, 04 Sep 2008 08:16:07 +0000
lol i solved it u wouldn’t believe how stupid the answer is. i have to make a 2nd @lineprice2 = SglineItem.find(:all, :conditions => “sguser_id =#{params[:ad]}”) after the if loop because the...
View Articlehighlight effect posted by Tan YL @ Thu, 04 Sep 2008 07:40:48 +0000
sgpanel.html.erb:< ul class=”panes” id=”panecontrol1”>< li id=”vendor_pane” class=”pane-selected”>< div id=”calculator”><= render :partial => ‘calculator’, :id=> @sguser.id,...
View Articlehighlight effect posted by Tan YL @ Thu, 04 Sep 2008 00:46:55 +0000
“Or it can send down Javascript instructions which causes either the attribute itself or even an entire row to be inserted into the DOM.”wait how come in your example its possible to add a new line to...
View Articlehighlight effect posted by Tan YL @ Wed, 03 Sep 2008 16:12:05 +0000
it seems that adding a brand new item will lag only showing the new item in the next click.meaning that@item = SglineItem.new@item.sguser_id= params[:ad]@item.groceries_id=params[:bd]@item.save!is not...
View Articlehighlight effect posted by Tan YL @ Wed, 03 Sep 2008 15:45:26 +0000
viewing source doesn’t seem to work as the source displayed on IE or FF is lagging and belongs to the original page not the newly updated ajax portions of the code
View Articlehighlight effect posted by Tan YL @ Wed, 03 Sep 2008 15:35:38 +0000
no i can’t. it doesn’t seem to see the id of highlighted.I know<% if product.groceries.id == @item.groceries_id %>is producing the correct code cause i am debugging now and just usingdef...
View Articlehighlight effect posted by Tan YL @ Tue, 02 Sep 2008 16:07:09 +0000
Hi,I have been trying to add the highlight effect to my table but everytime a new record is added the highlighting gives an rjs error. is this because the partial must only have only one...
View ArticleAdding line items posted by Tan YL @ Sat, 30 Aug 2008 05:43:02 +0000
Hi,i’ve read chapter 10 but i still don’t get how to add a line item to a normal database. The example is for sessions.I want to add a line item that has a user foreign key which is attached to a...
View ArticleIs making a search page on the same page as the user page possible posted by...
nothing is wrong with the code. i made the noob mistake of putting the function under private
View ArticleIs making a search page on the same page as the user page possible posted by...
UPDATE: solved 1 & 3 need an answer on 2 though
View ArticleIs making a search page on the same page as the user page possible posted by...
Hi,Thanks to this book and the ruby community i am starting to build my app, however i am now stuck. I need to create a user page that can search and add objects to a cartStep by step of how app should...
View Articleinserting ruby code into string posted by Tan YL @ Mon, 11 Aug 2008 10:19:22...
thanks. btw which is more preferable groceries.id.to_s or #{h groceries.id}
View Articleinserting ruby code into string posted by Tan YL @ Mon, 11 Aug 2008 09:50:24...
hi,need some help again.i want to insert ruby code into a string like this:<= image_tag(”/image/groceries/<=h groceries.id %>.jpg”, :class =>how do i call the model in this case?
View Articlenoob question: state_lookup = us_states.index_by {|state| state.short_name}...
ok thx. I kinda get it now.
View Articlenoob question: state_lookup = us_states.index_by {|state| state.short_name}...
state_lookup = us_states.index_by {|state| state.short_name}what exactly is |state| supposed to repressent? why do we need to to call the object again? doesn’t rails understand that state.short_name...
View ArticlePg 240 rake db:schema_version posted by Tan YL @ Sat, 02 Aug 2008 05:10:52 +0000
I get rake aborted. and ” don’t know to build task ‘db:schema_version’ “
View Article