There's a column named catch
in hotels
table.
I created an object:
obj_hotel = Hotel.new
and then :
obj_hotel.catch = 'xxx'
Error occurred when I did the following thing:
puts obj_hotel.catch
There is no problem when obj_hotel.catch
at the left of =
, but when we want to use the value of obj_hotel.catch
, I get the error private method 'catch' called for Hotel
happened.
So, is catch
a private method of rails?
Thank you.