Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Ruby
syntax error on SQL statement
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="laredotornado, post: 4592863"] Hi, I'm using the latest version of Ruby for Fedora Core 6 Linux. I want to write concise SQL statements, but the following @subscriber = Subscriber.find(:first, :conditions => "pharmacy_id = ?", @pharmacy_id) is giving me the error: SyntaxError /usr/local/apache2/htdocs/easyrx/app/controllers/ register_controller.rb:44: syntax error, unexpected ')', expecting tASSOC @subscriber = Subscriber.find(:first, :conditions => "pharmacy_id = ?", @pharmacy_id) What's the correct way to write the statement? Thanks, - Dave [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Ruby
syntax error on SQL statement
Top