if i run rails serve i am fa
C:\forexrails server
= Booting WEBrick
= Rails 3.0.0 application starting in development on
http://0.0.0.0:3000
= Call with -d to detach
= Ctrl-C to shutdown server
Exiting
I was creating this simple rail application. my controller method looks
like this:
---
def create()
@simple = Simple.new(params[:simple]) ##params coming from view
@simple.save
end
---
And my model class Simple as below:
---
class Simple ActiveRecord::Base
set_table_name
Hi everyone,
I am running through the RailsSpace tutorial. I'm trying to figure out
the advanced login section, which in short creates a cookie and an
authorization token in the users table in the database.
My trouble is, I'm getting error: Wrong number of arguments (0 for 1)
the code that has
I am creating a multiple-selection list box with :
% form__list1 = [] %
%= select_tag, options_for_select([A,B,C,D], selected =A),
html_options = {size = 5, multiple = true}) %
I get
wrong number of arguments (0 for 1)
alluding to form__list1[] . How else should I specify this to not have
this
I am using Rails 2.0.2 with mysql database
I am getting this error when running a query with Find_by_sql:
wrong number of arguments (0 for 1)
Here are my queries:
@authors = Author.find_by_sql[SELECT * FROM authors WHERE name = ?',
name]
Also
@books = Books.find_by_sql[SELECT * FROM books
5 matches
Mail list logo