Displaying 9 results from an estimated 9 matches for "schwingerverband".
2006 Aug 09
7
function before_save
Hi everybody
I would like a function as the "before_save" method in the model. But it
must be the opposite. When I take out data from the database through the
model, I want to call a function before the data are available in the
controller.
Can anyone help me?
---- >>>> thx <<<< ----
--
Posted via http://www.ruby-forum.com/.
2006 Aug 14
3
last record
hi @all
Can anyone help me? I would like to read the last two records from a
database. In the database I have a table with id, name and sex.
How can I read the last two records from the entered names, who are
female? There are two conditions I need:
> last entries
> sex-condition
User.find(:all, :condition.....) ??
--
Posted via http://www.ruby-forum.com/.
2006 Aug 17
3
Use collection_select
I use the following code in my view:
<%= collection_select(''datedata'', ''date'', @allDate, :id, :date) %>
It''s show me the date of all entries in the database (Dropdown menu).
Additional, I wrote a helper method "showDate" in the
application_helper.rb! How can I use this method in the
collection_select for every date entry?
thanks
2006 Aug 08
2
validate data
Can anyone help me??
I validate a form-field:
protected
def validate
errors.add(:name, "should be longer than 2 chars") unless name.length
<= 2
end
I want to check the variable name. It should have a size over 2
characters. But my function "validate" doesn''t run! Why ???
--
Posted via http://www.ruby-forum.com/.
2006 Aug 03
2
Link to an other model
Hi
I a newbie in RoR! So I have an easy question for some of you:
I want with the following codeline link to the Admin-Controller. The
codeline is on the Product-View with a seperate controller "Product".
<%= link_to ''Back'', :action => ''Admin'' %>
But it doesn''t work correctly. Can anyone help me? I want to make a
simple link!
2006 Aug 08
1
form parameter
How can I change some parameters in a function of the controller. I have
a User_Controller, who''s responsible for update the information fields
in the database.
The parameters are "id", "firstname" and "lastname". Now, I want to
manipulate parameter "lastname", because I would like to add at the end
a point.
>> Thomas Miller
2006 Aug 10
2
validates_uniqueness_of problem
hi
Could I check to strings for uniqueness together and not individually?
That means for me in an example:
name: sex: result:
----- ---- -------
miller m unique
miller f unique
jackson m unique
miller m isn''t unique
So I want to check the name and sex be together unique. The name isn''t
2006 Aug 14
0
date_select form
How can I define a desired date in the ActionHelper "date_select". I
want to select always the last date in the current month.
Select:
-------
June -> 2006-06-30
July -> 2006-06-31
and so on....
--
Posted via http://www.ruby-forum.com/.
2006 Jul 31
5
PostgreSQL
Hi @ all
Does anyone has some experience with PostgreSQL and RoR? Does it gives
any disadvantages or problems with PostgreSQL? I have a webapplication,
that manage (read/write) many records (no. 200''000 records) and I search
a ideal database. Actually, I have two options: - MySQL / - PostgreSQL
And now, I would like to ascertain a good solution...
Thx, ribit
--
Posted via