Displaying 5 results from an estimated 5 matches for "bbsaid1".
2006 Mar 28
8
Correct way to capture a select param
I''m having trouble capturing the params from a select type form.
For text field like this:
<%= text_field_tag :courseid %>
I''m able to capture the posted value with this
params[:courseid]
However with a select field like this:
<%= select(:course, :id, %w{value1 value2 value3} %>
I''m not sure how to capture the posted value.
--
Posted via
2006 May 15
5
Australian Ruby/Rails Web Host
Skipped content of type multipart/alternative-------------- next part --------------
A non-text attachment was scrubbed...
Name: rebecca.vcf
Type: text/x-vcard
Size: 414 bytes
Desc: not available
Url : http://wrath.rubyonrails.org/pipermail/rails/attachments/20060515/4cd2f87d/rebecca.vcf
2006 May 03
3
Sorting by multiple categories
I have a database with a field called ''category''.
''category'' contains the categories separated by a "," i.e. 1, 2, 5
I know with something like:
@products = Product.find(:all, :condition => "category = ''1''")
I could get some results if any of the ''category'' fields only contained
"1" but
2006 May 01
1
Show/Hide with AJAX
I''m trying to implement a show/hide details function.
I have the show part done, but I''m not sure how to get it to hide.
My app looks like this so far:
View:
<%= link_to_remote "Show/Hide", :update => "details", :url => { :action
=> "show", :id => leif } %>
<p id="details"></p>
Action:
def show
@leif =
2006 May 09
2
name and class href attribute in a link_to_remote
I have a link to remote and I''m trying to get the name="" and the
class="" attribute in the href so the link will come out like this:
<a href="action" onclick"ajax(action)" name="Title Of Link"
class="someclass">
So far the link looks like this:
<% for course in @courses %>
<%= link_to_remote