what is the point of this example if it doesn't save the user's oauth token? You can't do anything besides use the information from the initial response. For example: I can't tweet on behalf of this person. If this was a facebook auth - would be able to post messages or do anything. Am I missing something?
I am learning Rails by myself and your tutorials have been extremely helpful!
I am coming across an issue with the remember me. Regardless of if I click on the "remember me" or not, the site still remembers me after I close and reopen a new browser. Is anyone else having that same issue?
Does anyone have some guidance as to how to integrate Active Admin with Sunspot? I think it would be great if the filters on the right hand side of each index would search Solr rather than the underlying SQL.
Hi. This gem is beautifull. But I have som problem. When I try to get pdf I see only clear site with nothing. I have installed gem and I have written all definitions like require but nothing helps. Please give me some advice. (rails 3.1, ruby 1.9.2 on windows maschine)
Great screencasts as always. I've only a doubt: why do you use _url methods instead of _path methods? I thought that one should use _path methods unless there is the need to have the full urls. Since you are always very precise about these details I was wondering if there is a reason behind that...
Hi Ryan, Thanks so much for another great screencast. I totally learnt Rails following your screencasts. I noticed that ActiveAdmin using devise, what's the best way to authorize admin panel to the users who have roles of Administrator. I was using CanCan. Do active admin have anything for Authorization or do we have to integrate it through CanCan?
ActiveAdmin is great when you need a set of screens to let you manage your data directly. It saves having to build and test extra screens that you never plan to roll out to general users. If you spend too much time customising ActiveAdmin then perhaps you should be building a custom screen for that function.
Nice screencast as always! I've been using ActiveAdmin for a while and it's a great admin interface. The only downside is that it doesn't get along to well with CanCan, it would be great to have different roles that can access the admin interface of an app and limit their actions with CanCan.
I agree with Doug Puchalski, I've been using Active Admin for some time now, and also found myself fighting with it constantly to get it to do things I wanted. I have several blog posts dedicated to some workarounds I found.
Active Admin looks beautiful and works great if you don't want to push it too far. I recently dropped Active Admin in favor of a manual hand-coded version for several reasons. I found the release cycle very slow. I also didn't like the dependence on Formtastic and Devise.
Kudos to the guys who put it together though, it really is a nice gem. It just doesn't fit a project that needs a lot of customizing.
I used ActiveScaffold on a large project in Rails 2.3. I was able to customize everything I needed but it wasn't easy for complex cases. I believe the main fork is not being upgraded to Rails 3.
I've been using ActiveAdmin and agree that it's beautiful and initially feels like a great choice to get started. However, I found myself spending a lot of time fighting the gem to build an app around it. I think it's best suited to use as a customizable scaffold system and that's it. One problem I had was that it uses a DSL-generated layout, so you can't integrate it easily into an existing app. It's really designed around management of resources, not as a general-purpose application framework. All in all, very powerful but it makes things that are easy in Rails a bit harder sometimes.
I'm investigating a switch to Rails Admin myself. It seems to be a bit less automatic and more the "Rails Way", but it may be too early to say.
I've been considering some ORMs for Rails during long time (experimented with Hobo, ActiveScaffold, even switched to Python to give it a try with Django). ActiveAdmin's backend looks nice, but must recognise I'm currently using Typus (https://github.com/typus/typus) and I can say it's fully customizable (ready to use for most of cases). It really deserves to have a deep look.
Thanks and congrats for these awesome lessons (following every week!)!!
I would LOVE to see Mongoid support. We're using mongoid in a few companies I work for and active admin would be a great addition. I see there was talk in github issues of including additional ORM support back in June - I wonder what's happened with that?
I'm so confused now! I'm starting a new project at the moment and I want to use Sorcery from the last video and Active Admin from this one but Active Admin depends on Devise! Booo!
Thank you very much for this cast, Ryan!
I am using rails 3.0.10.
It seems, ActiveAdmin overwrites my active-admin.css file every time I reload a page.
I am trying to organize the section panel on the dasboard beneath each other. Therefore I tried to wrap them into custom divs.
Is there a better way to achieve this?
I'm new to rails, stumbling along! I've followed this tutorial and #274 but am now getting a failed example that I can't work out:
''' ruby
Guard is now watching at '/Users/andrew/Sites/app_name'
Guard::RSpec is running, with RSpec 2!
Running all specs
DEPRECATION WARNING: ActiveRecord::Associations::AssociationCollection is deprecated! Use ActiveRecord::Associations::CollectionProxy instead. (called from at /Users/andrew/Sites/app_name/config/environment.rb:5)
.F
Failures:
1) PasswordResets should email user when requesting password reset
Failure/Error: current_path.should eq(root_path)
expected "/"
got nil
(compared using ==)
# ./spec/requests/password_resets_spec.rb:10:in `block (2 levels) in <top (required)>'
Finished in 0.71308 seconds
2 examples, 1 failure
Failed examples:
rspec ./spec/requests/password_resets_spec.rb:4 # PasswordResets should email user when requesting password reset
'''
This seems to come up no matter what I put in the "current_path.should..." line. The only way I can get it to pass is to go
''' ruby
current_path.should eq nil
'''
But when I try the form in my browser, it does redirect to the root_path.
Here's part of my test log:
''' ruby
To reset your password, click the URL below.
If you did not request your password to be reset, just ignore this email and your password will continue to stay the same.
Redirected to http://www.example.com/
Completed 302 Found in 60ms
Started GET "/" for 127.0.0.1 at 2011-09-20 19:31:11 +1000
Processing by HomeController#index as HTML
Rendered home/index.html.erb within layouts/public (0.3ms)
Completed 200 OK in 6ms (Views: 5.7ms | ActiveRecord: 0.0ms)
'''
Not sure why it says something about http://www.example.com. Did a search and none of my code appears to contain that domain, except for the Factories email address.
Also, does anyone know why I am getting a "Depreciation Warning" and how to resolve it? I'm running Rails 3.1.0 and Ruby 1.9.2.
You might wanna check the documentation for this but in general you need to implement one of the following methods to_s, name, label, to_label to your model. ActiveAdmin will go through these to find a suitable text label for your model
I have an issue though: I have a country which has_many regions. The region table in active admin shows the listbox with countries nicely, but it shows hash values like "Country:00x000345" instead of the actual countries. What am I doing wrong here? Thanks!
ActiveAdmin is absolutely amazing! Thank you for doing a screencast on this.
On a side note, are you aware of the issues that ActiveAdmin has with Rails 3.1 on Heroku? I've been playing around with it for some time and haven't found a reasonable answer.
Rails Admin looks great as well, but I didn't feel it was ready to be covered. A gem hasn't been recently released. I will probably cover it in a future episode after it reaches a stable point.
I love these patterns to dry up my code! - thanks
I agree as well, though I'm new with it, I see the potential
what is the point of this example if it doesn't save the user's oauth token? You can't do anything besides use the information from the initial response. For example: I can't tweet on behalf of this person. If this was a facebook auth - would be able to post messages or do anything. Am I missing something?
I have lambda scope in myModel. How can I add lambda param to scope section in ActiveAdmin.register myModel?
Is it possible to do nested resources with activeadmin?
Thanks! I was also getting the :3000:3000. This fixed it for me too.
Indeed I gave it a try and I found it awesome! thanks @jnicklas, @rmagick and of course @ryanb
beautifully explained, thank you
very interesting once again!
thanks again!
yeah having issues with this too. i've been trying rails_admin its pretty nice too.
i think both of them are very early/unstable. but feel that rails_admin is abit more solid.
Your Railscasts are definitely one big reason for developing in Rails. Thanks
Awesome as usual. Don't forget to add
after
gem install rb-fsevent
;)
I am learning Rails by myself and your tutorials have been extremely helpful!
I am coming across an issue with the remember me. Regardless of if I click on the "remember me" or not, the site still remembers me after I close and reopen a new browser. Is anyone else having that same issue?
Thanks.
https://github.com/gregbell/active_admin/issues/278
https://github.com/gregbell/active_admin/issues/170
Is there a way to limit tasks to a given environment
ex:
development:
redis: redis-server
Does anyone have some guidance as to how to integrate Active Admin with Sunspot? I think it would be great if the filters on the right hand side of each index would search Solr rather than the underlying SQL.
Hi. This gem is beautifull. But I have som problem. When I try to get pdf I see only clear site with nothing. I have installed gem and I have written all definitions like require but nothing helps. Please give me some advice. (rails 3.1, ruby 1.9.2 on windows maschine)
Great screencasts as always. I've only a doubt: why do you use _url methods instead of _path methods? I thought that one should use _path methods unless there is the need to have the full urls. Since you are always very precise about these details I was wondering if there is a reason behind that...
Hi Ryan, Thanks so much for another great screencast. I totally learnt Rails following your screencasts. I noticed that ActiveAdmin using devise, what's the best way to authorize admin panel to the users who have roles of Administrator. I was using CanCan. Do active admin have anything for Authorization or do we have to integrate it through CanCan?
ActiveAdmin is great when you need a set of screens to let you manage your data directly. It saves having to build and test extra screens that you never plan to roll out to general users. If you spend too much time customising ActiveAdmin then perhaps you should be building a custom screen for that function.
Nice screencast as always! I've been using ActiveAdmin for a while and it's a great admin interface. The only downside is that it doesn't get along to well with CanCan, it would be great to have different roles that can access the admin interface of an app and limit their actions with CanCan.
me, too.
[update]
ActiveAdmin does work with this command, just not the
rake assets:precompile
. Just make sure you migrate Heroku's database, too.I really like the gem but it is extremely slow for me. Is anyone else experiencing this?
I am running into the error discussed in this area of the devcenter.
http://devcenter.heroku.com/articles/rails31_heroku_cedar#troubleshooting
I am not sure exactly how to resolve or debug at this time, but I will report back if I find anything.
I agree with Doug Puchalski, I've been using Active Admin for some time now, and also found myself fighting with it constantly to get it to do things I wanted. I have several blog posts dedicated to some workarounds I found.
Active Admin looks beautiful and works great if you don't want to push it too far. I recently dropped Active Admin in favor of a manual hand-coded version for several reasons. I found the release cycle very slow. I also didn't like the dependence on Formtastic and Devise.
Kudos to the guys who put it together though, it really is a nice gem. It just doesn't fit a project that needs a lot of customizing.
Looks great, will definitely try this trick
Bare bones Devise vis a vis Sorcery:
Bare Bones Devise
I used ActiveScaffold on a large project in Rails 2.3. I was able to customize everything I needed but it wasn't easy for complex cases. I believe the main fork is not being upgraded to Rails 3.
I've been using ActiveAdmin and agree that it's beautiful and initially feels like a great choice to get started. However, I found myself spending a lot of time fighting the gem to build an app around it. I think it's best suited to use as a customizable scaffold system and that's it. One problem I had was that it uses a DSL-generated layout, so you can't integrate it easily into an existing app. It's really designed around management of resources, not as a general-purpose application framework. All in all, very powerful but it makes things that are easy in Rails a bit harder sometimes.
I'm investigating a switch to Rails Admin myself. It seems to be a bit less automatic and more the "Rails Way", but it may be too early to say.
Hi, there! Excellent Railscasts as always!
I've been considering some ORMs for Rails during long time (experimented with Hobo, ActiveScaffold, even switched to Python to give it a try with Django). ActiveAdmin's backend looks nice, but must recognise I'm currently using Typus (https://github.com/typus/typus) and I can say it's fully customizable (ready to use for most of cases). It really deserves to have a deep look.
Thanks and congrats for these awesome lessons (following every week!)!!
Another really great screencast, thanks!
I would LOVE to see Mongoid support. We're using mongoid in a few companies I work for and active admin would be a great addition. I see there was talk in github issues of including additional ORM support back in June - I wonder what's happened with that?
I want to rename the resources by use i18n. How should i do?
I got following Error
Error: This transaction cannot be processed due to an invalid merchant configuration.
Hey Ryan!
As usually your screencast are great learning tools, the rails community is so generous with their time and expertise.
I have been playing around with active_admin and really like it.... Kudos to GregBell!!
On the gotcha with stylesheet issue, I found that moving the active_admin.css.scss to the /vendor/assets/stylesheet also solved AA overriding my css.
Thanks again for all you do!
Not yet, but I will be trying @bnerd's solution first.
Thanks Ryan,
Input for datetime is blank, is it possible to show current datetime onload?
I'm so confused now! I'm starting a new project at the moment and I want to use Sorcery from the last video and Active Admin from this one but Active Admin depends on Devise! Booo!
What to do.....
Works for me on heroku, application.rb
Bundler.require *Rails.groups(:assets)
Thank you very much for this cast, Ryan!
I am using rails 3.0.10.
It seems, ActiveAdmin overwrites my active-admin.css file every time I reload a page.
I am trying to organize the section panel on the dasboard beneath each other. Therefore I tried to wrap them into custom divs.
Is there a better way to achieve this?
Nice. Thank you. I'm just wondering how to use active admin with MongoID?
I'm new to rails, stumbling along! I've followed this tutorial and #274 but am now getting a failed example that I can't work out:
''' ruby
Guard is now watching at '/Users/andrew/Sites/app_name'
Guard::RSpec is running, with RSpec 2!
Running all specs
DEPRECATION WARNING: ActiveRecord::Associations::AssociationCollection is deprecated! Use ActiveRecord::Associations::CollectionProxy instead. (called from at /Users/andrew/Sites/app_name/config/environment.rb:5)
.F
Failures:
1) PasswordResets should email user when requesting password reset
Failure/Error: current_path.should eq(root_path)
Finished in 0.71308 seconds
2 examples, 1 failure
Failed examples:
rspec ./spec/requests/password_resets_spec.rb:4 # PasswordResets should email user when requesting password reset
'''
This seems to come up no matter what I put in the "current_path.should..." line. The only way I can get it to pass is to go
''' ruby
current_path.should eq nil
'''
But when I try the form in my browser, it does redirect to the root_path.
Here's part of my test log:
''' ruby
To reset your password, click the URL below.
http://localhost:3000/password_resets/_CdAYKLafBbLyLVLvHaLpw/edit
If you did not request your password to be reset, just ignore this email and your password will continue to stay the same.
Redirected to http://www.example.com/
Completed 302 Found in 60ms
Started GET "/" for 127.0.0.1 at 2011-09-20 19:31:11 +1000
Processing by HomeController#index as HTML
Rendered home/index.html.erb within layouts/public (0.3ms)
Completed 200 OK in 6ms (Views: 5.7ms | ActiveRecord: 0.0ms)
'''
Not sure why it says something about http://www.example.com. Did a search and none of my code appears to contain that domain, except for the Factories email address.
Also, does anyone know why I am getting a "Depreciation Warning" and how to resolve it? I'm running Rails 3.1.0 and Ruby 1.9.2.
Any help would be appreciated... thanks!
You might wanna check the documentation for this but in general you need to implement one of the following methods
to_s, name, label, to_label
to your model. ActiveAdmin will go through these to find a suitable text label for your modelI they no way to customize the fields in the creation of products page(new page)
I second this! I've spent hours trying to get it to deploy but keep generating errors! Something to do with SASS i think.
Did you come up with a solution?
Thanks for another great video!
I have an issue though: I have a country which has_many regions. The region table in active admin shows the listbox with countries nicely, but it shows hash values like "Country:00x000345" instead of the actual countries. What am I doing wrong here? Thanks!
What your opinion about active scaffold? How good is it compared to activeadmin?
ActiveAdmin is absolutely amazing! Thank you for doing a screencast on this.
On a side note, are you aware of the issues that ActiveAdmin has with Rails 3.1 on Heroku? I've been playing around with it for some time and haven't found a reasonable answer.
How does activeadmin handle many-to-many relationships?
Rails Admin looks great as well, but I didn't feel it was ready to be covered. A gem hasn't been recently released. I will probably cover it in a future episode after it reaches a stable point.