Displaying 5 results from an estimated 5 matches for "helfrich".
2006 Jul 07
8
Possible name clash?
Scenario:
Table in database has two fields, id and category (table name is:
categories)
Controller is named category_controller.rb
Model is named category.rb
Helper is named category_helper.rb
Form is named list.rhtml in view\category directory
The code in play on the form is (from generating scaffold):
<% for category in @categories %>
<tr>
<td><%=
2006 Jul 15
7
:maxsize => 30 in form not working
Well, I''ve researched the books and the web to no avail (I tried the search here too but kept getting page not found.I''m doing what the examples say to do but I cannot get this work. The form allows entry of characters beyond the maxsize which causes the app to abend giving me the browser page showing a trace with the following info preceding the trace:
Mysql::Error:
2006 Jul 01
2
Records not being returned
I have the following line of code in my controller''s action method:
@needs = Need.find(:all, :conditions => "fulfilled_date = ''null''")
This returns no records to the view, but I am expecting one record.
The following line in MySQL will return the record I expect:
Select * from needs where fulfilled_date is null;
To test the code, I substituted
2006 Jul 08
2
Trouble getting select to work
I''ve tried pulling this together from examples in the book, searching
the web and this list, but so far I''ve not been able to get it working
just right.
My table is a categories table with id and category fields.
My form has the following:
<td><%= select(''category'', ''category'', @categories = Category.find(:all,
:order =>
2006 Jun 29
2
? concerning ActiveRecord, Action and template
Much appreciate any help here. I''m just getting started learning RoR and
setting up my first form is throwing me - I''m not getting the concepts
formalized in my mind.
Situation:
- Controller is: Donation
- Action is: donation_entry
- Template is: donation_entry.rhtml
This form will be displayed when selected from sidebar menu (which will
always be present for all