Jump to content

The ultimate community for Ruby on Rails developers.


Photo

About Json

json

  • Please log in to reply
1 reply to this topic

#1 liznet

liznet

    Passenger

  • Members
  • 2 posts

Posted 13 February 2014 - 05:20 PM

Hi, I have a query. Its "I ran a scaffold app today. I found that index_Json is created . When I added a column using migration. I found that index,show_Json is not updated. And the app runs properly. What's the use this Json in scaffold. "

#2 Jamie

Jamie

    Controller

  • Moderators
  • 140 posts
  • LocationNewcastle, UK

Posted 21 July 2014 - 07:00 PM

Hi, I have a query. Its "I ran a scaffold app today. I found that index_Json is created . When I added a column using migration. I found that index,show_Json is not updated. And the app runs properly. What's the use this Json in scaffold. "

 

Even though this question was posted some time ago and not answered I'll give my answer if anyone comes across a similar issue.

 

The problem is most likely your jbuilder file if you used scaffold.

 

You might want to edit that file and add the new column.

 

:)


Rails developer based in Newcastle, UK.






Also tagged with one or more of these keywords: json

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users