search for: scaljery

Displaying 5 results from an estimated 5 matches for "scaljery".

Did you mean: scaler
2008 Jul 21
6
form_for and select ( => f.select)
Hi All I''m trying to combine the from_for and select helpers Right now I have form_for :service, :url => ...... do |f| select("abc", "xyz_id", @my_arr.collect {|item| [ item, "bla" ] }, {:prompt => "opt1"} ) .... end What I want to do is something like .... f.select("abc", "xyz_id", @my_arr.collect {|item|
2006 Dec 10
2
set specific date with date_select
Hi All I seem to have a problem with date_select methods. I cannot set a default date. I tried the following: <%= date_select( "post", "written_on", :selected => Date.new(2005,3,31), :order => [:day, :month, :year] ) %> But still I get todays date :( Any suggestions what I do wrong here ? Thnx a lot LuCa -- Posted via http://www.ruby-forum.com/.
2008 Jul 28
0
Re: remote_ip always returns 127.0.0.1 (apache)
On Mon, Jul 28, 2008 at 3:09 PM, Luca Scaljery <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: > I have my webrick server behind apache (all on the same server). The > problem I have now is that request.remote_ip always returns 127.0.0.1. > So it gets this IP from apache (I guess). How do I get the true client...
2008 Aug 20
0
activeresource: self.prefix = .../:id/... (need to set :id?)
Hi All As I mentioned in my title I''m using activeresource and the model I''m using has the following prefix self.prefix = ''/institute/:institute_id/services/:service_id/'' All this is great, however I''m now in a situation where I need to save the model, but it translate the prefix as follows /providers/983783784/services//appointments/234234234 So,
2008 Sep 18
0
Detect client time_zone
Hi All How do I determine (on the server-side) for an incoming request the time zone of the client. I''ve studied the ''request'' parameter but didn''t see anything like a TZ. Any suggestion how to do this ? Cheers LuCa ps I need the TZ to convert Dates/Times correctly on a 2nd server (this 2nd server need the TZ!) -- Posted via http://www.ruby-forum.com/.