upmin / upmin-admin-ruby

Framework for creating powerful admin backends with minimal effort in Ruby on Rails.
MIT License
757 stars 66 forks source link

up_attribute with progress_bar #138

Open EddieDee opened 9 years ago

EddieDee commented 9 years ago

I saw the example video using progress_bar, but It isn't working for me, is it a future feature?

Because I always get a undefined method `up_attribute' for.....

mbrookes commented 9 years ago

Could you post a gist with the full error & backtrace?

EddieDee commented 9 years ago

https://gist.github.com/eagoweb/de24b54fc44242570670#file-up_attribute-error

mbrookes commented 9 years ago

Is app/views/upmin/partials/attributes/_order_express_payer_id.html.erb a custom view partial? As noted in the README, the videos are out-of-date, and mostly there to show the basic feature-set rather than as a tutorial.

Please take a look at the wiki which is more up to date:

https://github.com/upmin/upmin-admin-ruby/wiki/Customizing-Views

EddieDee commented 9 years ago

Yes it is a custom view partial:

It has the following: <%= up_attribute(model,:express_payer_id, as: :progress_bar, locals: {state: order_express_payer_id, states: model.tracking_states })%>

I see in the link, the method is called up_render instead of up_attribute, by any chance do you have an implementation of the progress bar with up_render?

mbrookes commented 9 years ago

In which video did you see a progress bar, and what is it you want to show the progress of?

EddieDee commented 9 years ago

https://www.upmin.com/admin-rails#use-widgets

I am trying to emulate the same results this guy is getting there.

joncalhoun commented 9 years ago

@eagoweb I'll try to get an updated guide setup this week for you. Sorry - been a crazy few months and I haven't been giving upmin enough love and attention :frowning: