title: rails get value using variable with self
body: <p>Can we use variable as an attribute along with self ?
  generally we do like self.profession but i want do like store 'profession' word in any string variable say 'x' and use it with self say self.x , but it is not working.</p>
  
  <p>any help will be appreciated.</p>