pinballmap / pbm

Pinball Map
https://pinballmap.com
GNU General Public License v3.0
110 stars 25 forks source link

/admin/user on staging - error 500 #546

Closed RyanTG closed 7 years ago

RyanTG commented 7 years ago

Can't view or edit existing users on staging. It's just a blank page.

On dev, I can see the error:

Showing /home/rgratzer/.rvm/gems/ruby-2.1.2/gems/rails_admin-0.8.1/app/views/rails_admin/main/index.html.haml where line #99 raised:

undefined method `last_login_at' for # If you want to use a RailsAdmin virtual field(= a field without corresponding instance method), you should declare 'formatted_value' in the field definition. field :last_login_at do formatted_value{ bindings[:object].call_some_method } end

` - if @other_left_link ||= other_left && index_path(params.except('set').merge(params[:set].to_i != 1 ? {set: (params[:set].to_i - 1)} : {})) %td.other.left= link_to "...", @other_left_link, class: 'pjax'

Jesus, can't format this. Here's a screenshot.

user_error

scottwainstock commented 7 years ago

Deploying this now: https://github.com/scottwainstock/pbm/commit/88a3abfbf14e16140d656dafd9e85a74ce14d0fa

RyanTG commented 7 years ago

DAMNIT. Me again, screwing things up. I tried not to be sloppy when I changed the urls, but I clearly missed a couple things. :<