If I had the following
@recipes = recipe.find_all
Is there a way to find all the field names returned by the query and the
data in them.
Thanks
Martin
If I had the following
@recipes = recipe.find_all
Is there a way to find all the field names returned by the query and the
data in them.
Thanks
Martin
Recipe.column_names returns an array of all of the columns.
-Bill
Martin E. wrote:
If I had the following
@recipes = recipe.find_all
Is there a way to find all the field names returned by the query and the
data in them.
Thanks
Martin
–
Sincerely,
William P.
What if @recipes was gotten with a mySQL JOIN statement?
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs