[Rails] Re: Hash objects not display properly

2011-02-25 Thread Vijay Ra
>> <%=@q%> >> >> <%= @name.each do |h|%> > > You don't want <%= on the line above, that causes it to display the > return value from the call. You just want > <% @name.each do |h| %> > so that it will run the code but not display the result of this line. > > Colin Thanx u r god ;) -- Posted vi

[Rails] Hash objects not display properly

2011-02-25 Thread Vijay Ra
Hello I m newbie in rails i create simple application which take data from user search in DB and show output but it not show properly it's show what i want plus it show whole hash elements which is i don't want. i am attaching output screen shot here Here r my app files ==

[Rails] Re: Can't connect mysql db

2011-02-03 Thread Vijay Ra
. > > On Fri, Feb 4, 2011 at 11:18 AM, Vijay Ra wrote: > >> encoding: utf8 >> >> . >> For more options, visit this group at >> http://groups.google.com/group/rubyonrails-talk?hl=en. >> >> > > > -- > Ratnadeep Deshmane. > http://rtdp

[Rails] Can't connect mysql db

2011-02-03 Thread Vijay Ra
Hello, I am new in ror I create new application and i try to connect mysql using rake db:migrate it showing attached error i am using xampp for mysql also my database.yml settigs are as follows === development: adapter: mysql2 encoding: utf8 reconnect: false database: mydia