[Rails] 'get_user_list' function not working

2009-04-24 Thread haneef5k
i want to show fullname by using fuction call 'get_user_list' , but its not working..?? tis s user.rb ( def full_name self.first_name + " " + self.last_name end ) my post controller ( def get_user_list return User.find(:all, :order => 'last_name ASC').collect {|

[Rails] cant able to edit and new post

2009-04-24 Thread haneef5k
i want to show fullname by using fuction call 'get_user_list' , but its not working..?? tis s user.rb ( def full_name self.first_name + " " + self.last_name end ) my post controller ( def get_user_list return User.find(:all, :order => 'last_name ASC').collect {|u

[Rails] Re: Listing of Category error

2009-04-24 Thread haneef5k
d and a > post_id. > > Regards. > > Franco Catena. > > On Apr 24, 11:51 am, haneef5k wrote: > > > > > Im trying to see posts index page, In tat im showing category list, im > > using collect method it show error.. > > > ActiveRecord::StatementInvalid in P

[Rails] Listing of Category error

2009-04-24 Thread haneef5k
Im trying to see posts index page, In tat im showing category list, im using collect method it show error.. ActiveRecord::StatementInvalid in Posts#index Showing app/views/posts/index.html.erb where line #19 raised: Mysql::Error: Unknown column 'categories_posts.category_id' in 'on clause': SELE

[Rails] How to pull down menu

2009-03-26 Thread haneef5k
hi, im new to Ror im learning by video tutorial .i wnt to knw how 2 add drop down menu..r pull down menu... it means ( select: collect.) pls help..me there s any web site...to learn tis..?? --~--~-~--~~~---~--~~ You received this message because you are subscribe

[Rails] Re: i cannt able to save the data.???

2009-03-07 Thread haneef5k
Now i do some changes in my music_library now its so., NoMethodError in PublicController#update undefined method `artist' for # On Mar 7, 11:24 pm, Frederick Cheung wrote: > On 7 Mar 2009, at 18:10, haneef5k wrote: > > > > > can u tell me as details..?? abt migration...

[Rails] Re: how to retrieve single record through chained associations

2009-03-07 Thread haneef5k
can u tell me online tutorial..??? On Mar 7, 10:55 pm, Frederick Cheung wrote: > On Mar 7, 4:39 pm, Tod Tod wrote: > > > > > Logically this kind of chaining > > Shop.find(2).category.find(10).shop_categories should collect and join > > appropriate associations and return data only for shop 2. >

[Rails] Re: i cannt able to save the data.???

2009-03-07 Thread haneef5k
can u tell me as details..?? abt migration...?? and actully im doing online music_library... On Mar 7, 11:06 pm, haneef5k wrote: > Thank for ur reply!! im new to ruby on rails,,im learning by video > tutorial. > wat im try to say is if i save the data by album its not redirecting

[Rails] Re: i cannt able to save the data.???

2009-03-07 Thread haneef5k
Thank for ur reply!! im new to ruby on rails,,im learning by video tutorial. wat im try to say is if i save the data by album its not redirecting to the page..?? On Mar 7, 10:59 pm, Frederick Cheung wrote: > On Mar 7, 5:57 pm, haneef5k wrote: > > > ActiveRecord::Stateme

[Rails] i cannt able to save the data.???

2009-03-07 Thread haneef5k
ActiveRecord::StatementInvalid in PublicController#create Mysql::Error: Unknown column 'albums.artist' in 'where clause': SELECT * FROM `albums` WHERE (albums.artist IS NULL) LIMIT 1 --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[Rails] Re: how to change sqlite3 to mysql..??

2009-02-28 Thread haneef5k
Hi, Schroeder Can u tell me,? which editor is best for Ruby on Rails..apps?? On Feb 20, 9:19 pm, Hassan Schroeder wrote: > On Fri, Feb 20, 2009 at 8:06 AM, haneef5k wrote: > > how to change sqlite3 to mysql..?? > > 1) install MySQL > 2) install mysql gem > 3) edi

[Rails] Re: how to change sqlite3 to mysql..??

2009-02-20 Thread haneef5k
Can u tell me how to install full RoR complete package with default of database adapter with mysql .?im getting sqlite3 is default??? On Feb 20, 9:22 pm, Ar Chron wrote: > If you're just getting started, create your project with: > > rails myproject -d mysql > > -- > Posted viahttp://www.ruby-fo

[Rails] Re: how to change sqlite3 to mysql..??

2009-02-20 Thread haneef5k
Can u tell me how to install full RoR complete package with default of database adapter with mysql .?im getting sqlite3 is default??? On Feb 20, 9:19 pm, Hassan Schroeder wrote: > On Fri, Feb 20, 2009 at 8:06 AM, haneef5k wrote: > > how to change sqlite3 to mysql..?? > > 1) in

[Rails] Re: how to change sqlite3 to mysql..??

2009-02-20 Thread haneef5k
Thank for reply... On Feb 20, 9:22 pm, Leonardo Borges wrote: > Please, be more specific. What error message are u getting? > > Anyway, i suspect that it's because u don't have the mysql gem > installed. > > Try installing it: gem install mysql > > On

[Rails] Re: how to change sqlite3 to mysql..??

2009-02-20 Thread haneef5k
Thank for reply... On Feb 20, 9:19 pm, Hassan Schroeder wrote: > On Fri, Feb 20, 2009 at 8:06 AM, haneef5k wrote: > > how to change sqlite3 to mysql..?? > > 1) install MySQL > 2) install mysql gem > 3) edit config/database.yml appropriately > 4) if you've alr

[Rails] how to change sqlite3 to mysql..??

2009-02-20 Thread haneef5k
Hi, im new to ruby on Rails..i install all ror files..if i try to work in database there is sqlite3 is default.??.. if i change to mysql im getting error...in localhost development side...?? how to change sqlite3 to mysql..?? help pls..?? --~--~-~--~~~---~--~~ Yo