Custom Rails ActiveAdmin page with a simple workflow for import

I am using ActiveAdmin for one of my projects and I am very disappointed with its learning curve. ActiveAdmin does a pretty good job of doing simple things in a book, but when it comes to something pretty complex it gets pretty complicated.

I'm trying to create this simple use case, but I'm really stuck with ActiveAdmin. USECASE:

  • The user opens a custom page, i.e. called program
  • There it finds a simple file input form that allows it to upload a file
  • After submitting the file, the user is redirected to a summary page, which displays the contents of the file, the parsed program, and information about what will happen when he confirms the action. There will be a confirm and cancel button.
  • When the confirm button is pressed, the file is processed and the result is displayed

How do I accomplish this simple and trivial use case with ActiveAdmin? Can anyone provide a simple example with a custom page, controller actions, appropriate partial view, or whatever it takes to get it done?

Thank.

+3
ruby ruby-on-rails activeadmin


source to share


No one has answered this question yet

Check out similar questions:

81
Rails Admin vs. ActiveAdmin
32
Rails Activeadmin - choosing a custom association
4
Custom Action and Activeadmin Form
4
Rails order confirmation page
2
Render custom edit partial in "Custom Page" in ActiveAdmin
1
Rails & ActiveAdmin - flash.now on custom pages
1
Using D3 in Rails ActiveAdmin
1
Change the position of "Delete <resource>" in ActiveAdmin (Rails 3.2.8)
0
Why is my activeadmin header_renderer.rb breaking after upgrading to Rails 3.2.8
0
Can I override only part of the ActiveAdmin controller action with "super" + custom redirect?



All Articles
Loading...
X
Show
Funny
Dev
Pics