[Rails] Rails 3.0 + jQuery Datepicker. Edit value

2011-09-29 Thread Tom Pett
I recently started using jQuery and the Datepicker with an application of mine. with the help of http://railscasts.com/episodes/213-calendars I got the datepicker working on a text_field containing a date. Problem however is when we edit a model. Since a text_field shows the database value for a

[Rails] ActionMailer + GMail STMP: How to set FROM header?

2010-06-23 Thread Tom Pett
I am using Ruby 1.8.7 with Rails 2.3.8 and the GMail SMTP configuration. However all mail being sent by my application has its 'from' field as the gmail address that logs in, instead of what I supply in the from function of my ActionMailer. Is there any way to change this, or this is a restrictio

[Rails] Rails 2.3.2 <=> 2.3.4 SMTP: Recipient cannot contain spaces

2010-04-16 Thread Tom Pett
Did something change within the mailing support in Rails between versions 2.3.2 and 2.3.4? I have an app running Rails 2.3.2 with the following string as 'sender' for every email I sent out (new user created, forgotton password, that kind of thing) MAIL_FROM = "MyAwesomeWebsite.com " This works f

[Rails] Re: Retrieve redirect URLs from an URL

2010-04-07 Thread Tom Pett
I have found the gem HTTParty which is supposed to help me with this task. I am having some troubles getting this to work on my environment. Currently I run Rails 2.3.5, HTTParty 0.5.2 on Windows Vista (developer machine). I would really appreciate it if someone could give me an example code

[Rails] Re: Retrieve redirect URLs from an URL

2010-04-07 Thread Tom Pett
Rutvij Pandya wrote: > Tom Pett wrote: >> Anyone got any advice on this situation? > > > > dude, > > do u require to perform any operation btw each redirect?? > > Reply Not really. I would just like a l

[Rails] Re: Retrieve redirect URLs from an URL

2010-04-05 Thread Tom Pett
Anyone got any advice on this situation? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, se

[Rails] Retrieve redirect URLs from an URL

2010-03-31 Thread Tom Pett
For a project I am currently working on I am looking for a solution that gives me an ordened list of all the URLs that are in a redirect chain. Lets say I have an URL x, clicking this in a normal browser would redirect to y, which would redirect me to z; my final destination. Having just URL x, h

[Rails] Re: Making Rails interract with external sites / JS processing

2010-03-11 Thread Tom Pett
Bump... Anyone? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-