Re: [Rails] Controller / irb

2014-09-24 Thread Muskalek
That is because your name method is called recursively - the `return name + ""` is calling `name` once again and again and again... If you want to access raw attributes from database on ActiveRecord models, you can always use `self[:name]`. It might be convenient for you to use ruby interpolat

[Rails] Controller / irb

2014-09-24 Thread Mohammed Rashid
This is my controller: class Members < ActiveRecord::Base def name return name + "" end def describe return name + "" + email + "" + mobile + "" + category + "" + other end end when i go into the rails console and connect to Members, I say: a = Members.first a.name <<< this should