You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After updating my Rails 3.1 to 3.2 i have this error in one of my jbuilder partial :
Failure/Error: get :show, :id => @user.to_param, :format => :json
ActionView::Template::Error:
missing attribute: photo_updated_at
# ./app/views/api/user_ipads/_user_ipad.json.builder:11:in block in _app_views_api_user_ipads__user_ipad_json_builder__4322258879011176669_70322613825420' # ./app/views/api/user_ipads/_user_ipad.json.builder:1:in_app_views_api_user_ipads__user_ipad_json_builder__4322258879011176669_70322613825420'
# ./app/views/api/user_ipads/show.json.jbuilder:1:in _app_views_api_user_ipads_show_json_jbuilder___1496169294239287635_70322552739840' # ./spec/controllers/api/user_ipads_controller_spec.rb:56:inblock (4 levels) in <top (required)>'
This is very strange since my model has the photo_updated_at column, and i can access it without problem outside the jbuilder partial. Here is the line that create the issue :
Hi,
After updating my Rails 3.1 to 3.2 i have this error in one of my jbuilder partial :
Failure/Error: get :show, :id => @user.to_param, :format => :json
ActionView::Template::Error:
missing attribute: photo_updated_at
# ./app/views/api/user_ipads/_user_ipad.json.builder:11:in
block in _app_views_api_user_ipads__user_ipad_json_builder__4322258879011176669_70322613825420' # ./app/views/api/user_ipads/_user_ipad.json.builder:1:in
_app_views_api_user_ipads__user_ipad_json_builder__4322258879011176669_70322613825420'# ./app/views/api/user_ipads/show.json.jbuilder:1:in
_app_views_api_user_ipads_show_json_jbuilder___1496169294239287635_70322552739840' # ./spec/controllers/api/user_ipads_controller_spec.rb:56:in
block (4 levels) in <top (required)>'This is very strange since my model has the photo_updated_at column, and i can access it without problem outside the jbuilder partial. Here is the line that create the issue :
Line 11 : json.photo @user_ipad.photo.url
json.user_ipad do |json|
json.id @user_ipad.id
json.is_premium @user_ipad.is_premium
json.email @user_ipad.email
json.authentication_token @user_ipad.authentication_token
json.pseudo @user_ipad.pseudo
json.first_name @user_ipad.first_name
json.last_name @user_ipad.last_name
json.male @user_ipad.male
json.birthday @user_ipad.birthday
json.photo @user_ipad.photo.url
end
Do you have any idea where it could come from ?
Thanks,
Vincent
The text was updated successfully, but these errors were encountered: