Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

up_attribute with progress_bar #138

Open
EddieDee opened this issue Dec 15, 2014 · 7 comments
Open

up_attribute with progress_bar #138

EddieDee opened this issue Dec 15, 2014 · 7 comments
Assignees

Comments

@EddieDee
Copy link

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
Copy link
Contributor

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

@EddieDee
Copy link
Author

@mbrookes
Copy link
Contributor

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
Copy link
Author

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
Copy link
Contributor

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

@EddieDee
Copy link
Author

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

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

@joncalhoun
Copy link
Member

@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 😦

@joncalhoun joncalhoun self-assigned this Jan 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants