abhijit muke
2012-Oct-05 06:11 UTC
how to displya view from controller after fetching data from database ?
how would i display data in my spList view from my Controller sportList ..?? I want to fetch this data from database..Model has been created for table name Sports.. {class Sports < ActiveRecord::Base attr_accessible :date_created, :deleted, :id, :last_updated, :sports_name, :version end} which database query should I write in sportList Controller to dispylay data in spList view....please suggess... -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-core/-/zXizQ4SC_bkJ. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
Colin Law
2012-Oct-05 08:39 UTC
Re: how to displya view from controller after fetching data from database ?
On 5 October 2012 07:11, abhijit muke <abhijit.muke275@gmail.com> wrote:> how would i display data in my spList view from my Controller sportList ..?? > I want to fetch this data from database..Model has been created for table > name Sports.. > {class Sports < ActiveRecord::Base > attr_accessible :date_created, :deleted, :id, :last_updated, :sports_name, > :version > > end} > > > which database query should I write in sportList Controller to dispylay data > in spList view....please suggess...I suggest you work through some tutorials to understand the basics of Rails. railstutorial.org is good and is free to use online. Make sure that any tutorial you use is for Rails 3 and that you have installed the correct version to match the tutorial. Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
Colin Law
2012-Oct-05 08:40 UTC
Re: how to displya view from controller after fetching data from database ?
On 5 October 2012 09:39, Colin Law <clanlaw@googlemail.com> wrote:> On 5 October 2012 07:11, abhijit muke <abhijit.muke275@gmail.com> wrote: >> how would i display data in my spList view from my Controller sportList ..?? >> I want to fetch this data from database..Model has been created for table >> name Sports.. >> {class Sports < ActiveRecord::Base >> attr_accessible :date_created, :deleted, :id, :last_updated, :sports_name, >> :version >> >> end} >> >> >> which database query should I write in sportList Controller to dispylay data >> in spList view....please suggess... > > I suggest you work through some tutorials to understand the basics of > Rails. railstutorial.org is good and is free to use online. Make > sure that any tutorial you use is for Rails 3 and that you have > installed the correct version to match the tutorial.Also this list is for discussing rails core development issues, the Ruby on Rails Talk list is for help and general discussions. Colin> > Colin-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.