Displaying 20 results from an estimated 600 matches similar to: "uninitialized constant UserController"
2012 Dec 12
1
Devise route for confirmation error with :locale
Rails 3.1.3
I have setup devise and i18n . In routes.rb
scope "/:locale" do
devise_for :users, :controllers => { :registrations =>
''registrations'' }
...
end
But in the process of confirmation,
No route matches {:action=>"create",
:controller=>"devise/confirmations",
2009 Sep 29
0
Problem with RESTful resource and ActiveScaffold
Hello everyone,
I am trying to use a RESTful controller for user inside a namespace
using AS and one outside for registration and so on. When i try to
visit the namespaced url I get Unknown action. Once i replace
active_scaffold :users with a def index; end i can the URL.
My routes look like:
map.register "register", :controller => "users", :action =>
"create"
2009 May 22
1
rails 2.3.2, active scaffold, nested, ActionView::TemplateError (undefined method `format_column' for #<ActionView::Base:
Before I dig in any further (since I have no idea where to go from
here...)
Has anyone been succcessful with 2.3.2, AS, and nested scaffolds?
I have the latest of AS and the render_component plugin via
% script/plugin install --force git://github.com/lackac/render_component.git
-r rails-edge
I have an AS user_controller:
active_scaffold :user do |config|
...
2009 Jan 17
2
active_scaffold + i18n
Hello all,
I have a project where I''m using active_scaffold and would also like to use
i18n over it.
While the i18n works fine if I just ignore the active_scaffold, I couldn''t
get it running with it.
I searched through its docs and googled quite a bit. Can I use i18n with
active_scaffold?
thanks
cheers
--
gallois
aka Felipe Gallois
blog: www.gallois.com.br/blog
fanglib
2012 Feb 24
3
Devise generates Mailer by its own?
Rails 3.1.3
Hi. I''m a little confused with Devise and ActionMailer.
It seems that Devise has its own way of sending mails through
ActionMailer.
Does it generate Mailer class when "rails g devise..." command is
executed?
Or do I need to do some special command in order to generate Mailer?
I have certainly set up a devise User table but there is no Mailer class
for it,
2007 Jun 27
1
Active Scaffold controllers created dynamically at runtime?
Does anyone know how to link Rails'' routes into anonymous controller
classes created at runtime (defined with their superclass as
ActionController::Base)?
I''m trying to create a plugin for all of my projects that dynamically
creates an active_scaffold controller for each model. It would
essentially be like a scaffold_all_models for active_scaffold. I believe
the original
2013 Apr 27
4
required field for one, optional for another
rails 3.2.11
My app has User model, its one of the fields is entrepreneur:boolean.
So users have two types; one is normal users, the other is professional
users.
For normal users, only emails and usernames are required and other
fields are optional.
For professional users, in addition to above, addresses and real names
are required.
Is there any Ruby way to set the requirement depending on the
2012 Nov 30
4
Tokeninput incremental search not working
Rails 3.1.3
After watching
http://railscasts.com/episodes/258-token-fields?autoplay=true
I have installed the similar functionality to my app.
However,
def index
@cities = City.all
...
does in fact give the list of all cities in the text field, but
def index
@cities = City.where("name like ?", "%#{params[:q]}%")
...
does NOT
2012 Feb 22
3
Parent id for find_or_create method
Rails 3.1.3
I have tables, Video and Script having association,
Video 1 --- n Script
So, every Script needs the parent id, in this case, video_id.
If I simply create a new Script instance, the view renders as follows.
<%= render :partial => "new_script", :locals => { :script =>
Script.new(:video_id => @video.id)} %>
which works fine. Now I would like to
2011 Jun 13
0
Devise Authorization Error
Hello everyone,
I am new to rails and I am having some trouble getting the Devise
authorization plugin working. I can get the login page to display, but
when I enter the credentials for a known user (I seeded an account to
the database) it just says "Invalid email or password," even though
I''m 100% sure I entered the right information, and redirects me to the
login form.
2008 Feb 06
1
RSpec 1.1.3 + ZenTest 3.9.1 + Rails 1.2.6 do NOT ignore folders ^vendor/*
Hi,
I just updated to the latest RSpec 1.1.3 + ZenTest 3.9.1.
I also have rspec 1.1.3 installed as a gem
When starting autotest with -v option, there is a lot of noise because
autotest does not ignore the vendor folder, the migrations, etc ...:
Dunno! vendor/plugins/acts_as_solr/solr/lib/jetty-util-6.1.3.jar
Dunno!
2012 Oct 13
4
Database design, working but looking for better ways
Rails 3.1.3
Hi. I have designed the database used for my travel plan application.
You should be able to look at the diagram in the link below, hopefully.
https://cacoo.com/diagrams/biDSyxh8yzk2kIeg
("belongs_to" is omitted since it''s obvious)
Basically, the application can list the destinations from a choice of
the departure.
Not mention that the departure_id (integer) and
2012 Mar 02
2
Change DB data type and limited decimals
Rails3.1.3
I have db type,
startp:integer
I need to change it to float. More specifically,
1.2, 45.1, 143.8 ...
I have two questions:
1. Is removing and adding the field through migration the only way?
in other words, is there a single command to change the type?
2. Is there anyway to limit the decimal place to only one?
56.3, 34.2... are acceptable, but 23.112, 77.34, ... are
2012 Jan 27
4
Redirecting to create new page with input
Rails 3.1.3
I believe this is a very very fundamental question, but since I am new
to Rails, it''s more productive to ask someone to point out what I need
to do.
Say, I have a search method that generates a list of youtube videos. I
have completed this part.
And also, I have set up a database, Video, whose fields are video_title
and URL.
I need to place a button to each of these video
2007 Aug 10
0
rspec and active_scaffold
Hi,
Anyone here have a link or tips for a complete spec for a dead simple
active_scaffold controller, including its internal calls stubbed out
which we could use as a starting point? thanks.
linoj
2008 Jun 21
0
Git and script/plugin; How I pass the PATH variable?
RoR People,
I''m trying to use script/plugin and git.
I see this error:
mac2:/pt/webprops/mmhq/mm12/mymoney maco$ ruby script/plugin install
git://github.com/activescaffold/active_scaffold.git
removing:
/pt/webprops/mmhq/mm12/mymoney/vendor/plugins/active_scaffold/.git
sh: line 1: git: command not found
mac2:/pt/webprops/mmhq/mm12/mymoney maco$
mac2:/pt/webprops/mmhq/mm12/mymoney maco$
2010 Aug 16
2
Devise Nested Resources
I''m working on a new Rails (v3.0.0.rc) application using the Devise
(v1.1.1) gem. In my application I have setup a User model which
includes the person''s e-mail address and name. I have also setup the
following models that I''d like to attach to the User:
- Address (street, city, state, zip code)
- Interest (name)
- Donation (date of donation, amount)
My question is
2009 Nov 09
1
Active Scaffold Performance
Hi Everyone,
I know this is a recurring topic, but currently my application is
running very slow and I would like to figure out why. Every
transaction, except for the login page, have an average response time
in the 8,000~ 14,000ms range (DB: 300ms range), which is absurd. I
have implemented action caching and fragment caching on the views, but
those only help when there is a cache hit. On a
2009 Jul 30
8
Rails 2.3.x and active_scaffold Installation
Hi,
I have upgraded to rails 2.3 and active_scaffold plugin is not
working.
when i run this command it creates a active_sacaffold folder in vendor/
plugins, but its an empty folder. I googled but found no way to
install it.
Please help!!!!!
2012 Nov 12
7
RSpec: controller POST create
Rails 3.1.3
rspec-rails (2.11.4)
rspec 2.11.1
I am new to rspec. I don''t quite understand tests for POST create part.
I have generated scaffold, and simultaneously it generated
controller_spec.rb as well.
it "assigns a newly created plan as @plan" do
post :create, {:plan => valid_attributes}, valid_session
assigns(:plan).should be_a(Plan)