I’ve got a form which only consists of two Date_select elements, which
sends two date values to a action in same controller to retrive some
This works fine when I test in my local machine with web brick server.
But once I upload the app to the host (DreamHost server), the
date_select parameters doesn’t seem to get posted to the action. Which
results in Action Controller returning an error with nil objects. Also
request parameters of the section shows as none. So it seems the error
is due to the no parameter values were posted.
What prevents parameter values get posted on the server ? Can anyone
help me to clarify the issue?
Probably not the problem, but is the host running on production mode?
In which case you have to restart the Rails App for it to work?
common gotcha I thought I’d point out.
No the host is running on development mode.
Any Clues ?
May you tell me how do u perform a search based on two date in your
controller, using two date_select in your view ? I am trying to do the
same but i obtain this :
Mysql::Error: #42000You have an error in your SQL syntax; check the
manual that corresponds to your MySQL server version for the right
syntax to use near ‘:date_sortie) AND ( (offres.
type = ‘Album’ ) )’
at line 1: SELECT * FROM offres WHERE (date_sortie > :date_sortie) AND
type = ‘Album’ ) )
Thanks in advance.
On 25 sep 2006, 23:31, Lakshan Perera <rails-mailing-l…@andreas-