Displaying 5 results from an estimated 5 matches for "barraorion".
2006 Jun 15
8
rails saves it to the database and I don''t want to
Hello:
I am developing a web application to book machines for an event.
so I have an event model
class Event < ActiveRecord::Base
has_many :datetimes
...
end
and a datetime model
class Datetime < ActiveRecord::Base
belongs_to :event
...
end
I have developed a view with the event information and information for
the datetimes. and in the event_controller when I capture a datetime I
2006 Jun 18
4
uninitialized constant Datetime
I am building an application and I have generated the scaffold for a
product.
In the list method I include something like
my_date = Datetime.now
and the result I get from the webrick is an error
uninitialized constant Datetime
Do I have to add a line with a require?
I am new at ruby on rails
thanks in advance
--
Posted via http://www.ruby-forum.com/.
2006 Jun 21
1
how can I get the value of a hidden field and pass it
My problem is that I want to pass a date information form one page to
another. And that information came to my page in an Ajax petition.
My idea to accomplish this is that the date can come in the Ajax
response as a hidden field and when I click a link I can get that hidden
field value and pass it to the action in rails as a param.
I have done all this. I have the date in a hidden field and I
2006 Jun 25
0
Ajax not working on ie and konkeror
My ajax code does not work on ie and konkeror. It does work on firefox.
The code is
<%= link_to_remote( "Add Another",
:update => "event_times",
:url => { :action => :add_time , :indice =>
@indice, :date_start_day=>@datetime.start_date},
:position => :bottom,
:complete
2006 Jun 29
0
RAILS_ROOT
Hello everybody:
I am new and i have a small problem with ruby. I want to execute an
external program and I need to pass as an argument to that program a
file of the system.
I''ve got that file in the public/files folder of my rails folder tree.
How can I know the path to where I have my rails project? I thought this
would be with RAILS_ROOT but this variable is