[Rails] Re: wrong time in application

2011-04-14 Thread Tobias H.
> How are you displaying them? > > Fred in the view with: <%= l @execution.created_at %> the l means in this case, that i format the date in german notation. greetz, tobias -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups

[Rails] wrong time in application

2011-04-14 Thread Tobias H.
hey guys, i've got a problem and i really don't know how to solve it. when i'm creating a new dataset in my application, the created_at and updated_at time will be saved in UTF Time (+000). in my environment.rb i set the following line: config.time_zone = 'Berlin' when i'm using the console

[Rails] Re: Re: Parse selectbox value with javascript

2011-03-31 Thread Tobias H.
Hey guys, I tried the following (in a RJS-Template), but it doesn't work: page[:ma].select('select#makro_ma_attributes__algorithm_id').each do |sa| puts sa.getValue end => i want to loop over all selectboxes and read out the value with RJS => "ma" is a div tag which contains many other div

[Rails] Re: Parse selectbox value with javascript

2011-03-31 Thread Tobias H.
Thanks for the fast request. Do you also know how it's possible to read all values of different selectboxes in different div-tags (but all with the same name "algo") with prototype: Is there a way to loop over all those div-tags and read the value of the selectbox in each div-tag? -- Posted v

[Rails] Parse selectbox value with javascript

2011-03-31 Thread Tobias H.
Hey guys, i've the following question: how can i parse the value of a selectbox within a div-tag (with the id "ma") via AJAX and use the parsed value for reading out some data from my database. the parsing request should be started by selecting another selectbox. My mainquestion is: how can i par

[Rails] Controller/Action Problem

2010-05-18 Thread Tobias H.
hey guys, i've got the following problem: i call an action called "execute_algorithms". one codeline of this action tries to execute the following command: parser = LibXML::XML::Parser.file("http://localhost:3000/XMLFiles/results.xml";) but it won't work. with an url of a foreign server it works