Displaying 19 results from an estimated 19 matches for "activeadmin".
2012 Jan 26
2
Problem while creating new resource on ActiveAdmin
...hile restarting the server after generating an resource.
*rails generate active_admin:resource item*
/home/logs/Desktop/training/RAILS/courier/app/admin/items.rb:1:in `<top
(required)>'': uninitialized constant Item (NameError)
from
/home/logs/.rvm/gems/ruby-1.9.2-p290/gems/activeadmin-0.3.1/lib/active_admin/application.rb:129:in
`block in load!''
from
/home/logs/.rvm/gems/ruby-1.9.2-p290/gems/activeadmin-0.3.1/lib/active_admin/application.rb:129:in
`each''
from
/home/logs/.rvm/gems/ruby-1.9.2-p290/gems/activeadmin-0.3.1/lib/active_admin/application.rb:129...
2012 Oct 18
0
unexpected return (LocalJumpError) only when executing this code within autoloaded classes?
...ivesupport-3.2.8/lib/active_support/dependencies.rb:190:in
`each''
from
/path/to/.rvm/gems/ruby-1.9.3-p194@some_app_gemset/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:190:in
`const_missing''
from
/path/to/.rvm/gems/ruby-1.9.3-p194@some_app_gemset/gems/activeadmin-0.5.0/lib/active_admin/base_controller/menu.rb:2:in
`<module:ActiveAdmin>''
from
/path/to/.rvm/gems/ruby-1.9.3-p194@some_app_gemset/gems/activeadmin-0.5.0/lib/active_admin/base_controller/menu.rb:1:in
`<top (required)>''
from
/path/to/.rvm/gems/ruby-1.9.3...
2012 Oct 17
2
autolog: set_trace_func without all the typing
If it helps anyone developing Rails, apps, or gems, I wrote a shortcut for
set_trace_func, so next time you want to just add a line before and after
some function you are trying to debug you can have Ruby temporarily output
every line, method, etc. executed. Also, it lets you define the format, use
other loggers, etc. via a proc/lambda define, since you might not like the
default format.
2012 Jan 29
0
ActiveAdmin: Nested attributes not working for STI
...gs_to :sender, :class_name => "Customer"
has_many :receivers, :class_name => "Customer", :foreign_key => ''sender_id''
has_many :packages
accepts_nested_attributes_for :packages
accepts_nested_attributes_for :receivers
end
CUSTOMER ADMIN INTERFACE:
ActiveAdmin.register Customer do
form do |f|
f.inputs "Sender Details" do
f.input :name
f.input :email
f.input :street
f.input :city
f.input :state
f.input :pin
end
f.inputs do
f.has_many :receivers do |p|
f.input :name
f.input :email
f.input :street
f.input :city
f.in...
2011 Oct 05
2
formtastic / activeadmin
Newbie question:
want to following code to migrate to formtastic:
<% f.fields_for :assets do |asset_fields| %>
<% if asset_fields.object.new_record? %>
<p>
<%= asset_fields.file_field :asset %>
</p>
<% end %>
<% end %>
tried this:
f.inputs "Appartment Details" do
f.input :assets do |asset_fields|
2013 May 02
0
nested forms in activeadmin is mass assigning
Here is my question<http://stackoverflow.com/questions/16325137/yet-another-cant-mass-assign-protected-attributes-address-post>
.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
2012 Jan 23
0
Problem loading modules through ActiveSupport on_load
...d/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.7/
lib/active_support/dependencies.rb:225:in `load_dependency''
from /home/syed/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.7/
lib/active_support/dependencies.rb:235:in `load''
from /home/syed/.rvm/gems/ruby-1.9.2-p0/gems/activeadmin-0.3.2/
lib/active_admin/application.rb:132:in `block in load!''
from /home/syed/.rvm/gems/ruby-1.9.2-p0/gems/activeadmin-0.3.2/
lib/active_admin/application.rb:132:in `each''
from /home/syed/.rvm/gems/ruby-1.9.2-p0/gems/activeadmin-0.3.2/
lib/active_admin/application.rb:13...
2012 Sep 16
1
“Routing Error No route matches {}” when omniauth failed on registration
...ails.logger
Rails.application.config.middleware.use OmniAuth::Builder do
#...
provider :identity, on_failed_registration: lambda { |env|
IdentitiesController.action(:new).call(env)
}
end
config/routes.rb
Wie::Application.routes.draw do
root to: ''categories#index''
ActiveAdmin.routes(self)
devise_for :admin_users, ActiveAdmin::Devise.config
match ''auth/:provider/callback'', to: ''sessions#create''
match ''auth/failure'', to: ''sessions#failure''
match ''signout'', to: ''sess...
2012 Mar 07
0
LoadError: Expected X to define on gem upgrade
I''m upgrading to the latest version of ActiveAdmin and am running into the
following when trying to start the app:
Expected ../app/model/store/base.rb to define Base
base.rb defines base like:
module MyApp
class Store::Base
end
end
I''ve done some digging and found that ActiveAdmin did some refactoring to derive everything fr...
2011 Oct 11
5
Polymorphic association with Active Admin
I have a belongs_to polymorphic association and I don''t know how to
create and edit my models of that relationship with active admin.
If anyone can help me, please do.
Thank you,
Rodrigo
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to
2013 May 17
5
Active Admin with Ajax call
Hello everyone. I''m begining with Ruby on Rails, and i''m facing some
trouble with "ActiveAdmin with ajax."
Here''s the situation:
It''s a Kennel''s web site, so, while i''m creating a new dog, i have one
select/options for the dog''s father, dog''s mother, and dog''s race.
After select the dog''s father/mother "i c...
2011 Sep 21
1
Active Admin
Hello comrades
Can i use Active Admin on Rails 2.3.5 ?
http://activeadmin.info/
Thanks
Tsolmon
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to rubyonrai...
2011 Oct 11
1
How to use carrierwave with active admin?
Hi, I''d like to upload images and videos with carrierwave at the active
admin interface.
Just to make it clear, the admin will change images and video at the website
using active admin.
if anyone knows how to do this please help me.
Thank you,
Rodrigo
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this
2012 Oct 23
0
route problem
Hello
I have this routes.rb
Tamara::Application.routes.draw do
ActiveAdmin.routes(self)
devise_for :admin_users, ActiveAdmin::Devise.config
resources :users
resources :category do
resources :berichten
end
end
So I thought that localhost:3000/<category>/bericht/new I could write a new
bericht which is stored in the <categoryname>
But when...
2011 Oct 14
0
Any data table component for rails?
...rt]/params[:search]/params[:pagination]
to server side, which involves a lot of code,
I''ve checked out rubygems.org and found a
datatable project for jquery server side binding,
but unfornately It has dependencies on both
"will_paginate" and "kaminari", which breaks my
activeadmin(I remove will_paginate and modify its code
a little to use kaminari, but seems still have problem,the iTotalCount
becomes nil,
and it doesn''t support subtable?(the main table have a lot of subtable
records,
and need to paginate association submodel).
Since the jquery datatable still nee...
2011 Nov 25
0
Use Carrierwave with Active Admin?
Hey,
did any of you guys manage to get Active Admin with Carrierwave working?
When I installed AA everything worked fine but the image file upload
fields were plain text fields so added following:
ActiveAdmin.register Club do
form do |f|
f.inputs "Club" do
f.input :league
f.input :name
f.input :image, :as => :file
f.input :approved
end
f.buttons
end
end
Now it''s displayed as a file upload field and I can select a file but
after I submitted t...
2012 Apr 02
0
active admin saving selection from collection_select and passing to controller
...f.collection_select :menu_id,
Menu.all,:id,:name,:prompt => true%>
</p>
<%= f.buttons :commit %>
<%end%>
when ever i try to catch the and create or group it, it comes with a
Couldn''t find Recipe without an ID error
my active admin controller which i override is
ActiveAdmin.register MenuRecipe do
menu :parent => "Manage Package"
form :partial => "menu_recipe"
controller do
def new
new! do |format|
@menu_recipe = MenuRecipe.new
end
end
def create
create! do |format|
re...
2013 Mar 07
0
custom table_name for table users with devise
...bugger, I can see that is called but not
self.table_name_prefix. And even if self.table_name if called, devise
search users in tables users instead of franceusers
in console
User.table_name => "franceusers"
User.table_name_prefix => "france"
more weird, im also using activeadmin, and when I browse users list, I have
an error :
Mysql2::Error: Unknown column ''franceusers.id'' in ''order clause'': SELECT `users`.* FROM `users` ORDER BY `franceusers`.`id` desc LIMIT 30 OFFSET 0
it seems it can find table_prefix for field but not for FROM...
2012 Apr 19
1
active admin undefined method `' for nil:NilClass
...-ruby1.9.3-linux-gcc4.6.3-1002/support/lib/phusion_passenger/abstract_server.rb:206:in
`start_synchronously''
/home/led/.passenger/standalone/3.0.11-x86-ruby1.9.3-linux-gcc4.6.3-1002/support/helper-scripts/passenger-spawn-server:99:in
`<main>''
i dont know if its ok to post a activeadmin problem here sorry if i
posted a wrong question just wondering if there is a activeadmin expert
here thanks
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send e...