Displaying 20 results from an estimated 200 matches similar to: ""Stack level too" deep with @controller.hi"
2011 Jun 09
8
Fail to call
Hi, I''m trying create a user system for a future project but I have a
problem when I want give to my users the "Welcome". This is my code:
#application_controller
class ApplicationController < ActionController::Base
protect_from_forgery
helper_method :current_user
private
def current_user_session
return @current_user_session if defined?(@current_user_session)
2011 Jun 15
11
Problems with " wrong number of arguments (2 for 1) (ArgumentError) " and rails server
Hi, I''m trying initialize my local rails server but I haven''t can,
because when I write "rails server", show me this message:
=> Booting WEBrick
=> Rails 3.0.3 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
/home/distriker/Documentos/public_html/auth/mysql2/ruby/1.8/gems/
2012 Apr 19
2
method value passing in rails
in my ruby on rails application, i have one controller
class HomeController < ApplicationController
def home
puts "name.....#{@name}"
end
def branch
*//HERE HAVE TO GET THE ABOVE FUNCTION VALUE @name*
end
end
What am trying to do, i have to get the @name value in method branch. i
could show the value in function home, but i didn''t get that in
2011 Feb 14
1
Curiosity in my production.log: */*
In my production.log, I usually see lines like this:
Processing by HomeController#index as HTML
But sometimes I see the line like this:
Processing by HomeController#index as */*
At first I thought perhaps those calls were made by a bot, but after
looking at it closer it looks as those they are generated by normal
users. I have no idea, first, how that line could have been generated,
and
2010 Jun 21
4
Failing Routes in deployment
I have an app that has the following in the routes file:
namespace "admin" do
# ADMINISTRATIVE ROUTES ONLY
root :to => ''home#index''
resources :comments do
member do
get :approve
get :reject
end
end
resources :users do
member do
get :block
get :unblock
end
end
end
When browing to
2012 Aug 28
4
ArgumentError in HomeController#index
Hey guys, I''m new to ruby/rails and trying to sort something...
I just created an app with composer,
http://railsapps.github.com/rails-composer/
I used the command:
rails new myapp -m
https://raw.github.com/RailsApps/rails-composer/master/composer.rb
I set up the rails server, and tried to load the app on localhost:3000
However, I end up with:
ArgumentError in HomeController#index
2013 Oct 27
5
run simple method from Helper on button click
Greetings,
I''m new to rails and currently having couple problems about how to add
javascript functionality into rails.
I have a simple method in the helper and i want to run this code on
button click.
------------------------------------------------------------------
module PagesHelper
def show_message
"simple output"
end
end
2010 Aug 21
4
No route matches?
Hi all,
I''m coming from the PHP world and I''m trying to learn Ruby and Rails.
I''m having a problem where I keep getting the error "No route matches /
home/view" even though I have it defined it. I''d appreciate any help
on this. I''m using rails 3.0 and the setting for the environment is
"development".
# routes.rb
2006 Jul 03
7
form_remote_tag with multipart/form-data
Does form_remote_tag supports multipart/form-data ?
My form looks like this:
<%= form_remote_tag :url => { :action => ''do_image_upload'' },
:html => { :enctype => ''multipart/form-data'' } %>
<%= file_field ''image'', ''file_data'', :size => 32 %>
<%= submit_tag
2013 Nov 19
1
Programa V Jornadas Usuarios R
Hola, ¿qué tal?
Quiero añadir al mensaje de Miguel Ángel que hoy es el último día para
registrarse en las jornadas con los precios "early bird", i.e., 10?
para estudiantes y desempleados y 30? para el resto.
A partir de mañana --en realidad, de unas horas-- el precio pasa a ser
de 60? para todos:
http://www.eventbrite.es/e/entradas-v-jornadas-de-usuarios-de-r-7227404361?ref=ebtn
¡No
2006 May 06
3
define the meaning of this error
hi,
i just have this error, can anyone tell me what it means and how i can
fix it thanks.
NameError in HomeController#index
uninitialized constant Student
RAILS_ROOT: ./script/../config/..
Application Trace | Framework Trace | Full Trace
This error occured while loading the following files:
student.rb
Request
Parameters: None
Show session dump
---
user: !ruby/object:User
attributes:
2006 Jun 22
2
MVC architecture
Hi,
I want to creat a GUI accessible via the web with ruby to interface some
matlab implementation ... so I extended Ruby with C++ and then matlab :)
that works perfectly: I have finaly a Ruby class I can call whenever I
want to lunch my matlab algorithm ;)
the point is now I have to make the GUI in HTML with Rubby on rails and
Damn! I don''t get how works the MVC architecture in Ruby
2008 Jul 09
11
script/generate scaffold user
NameError in UsersController#index
uninitialized constant UsersController::User
RAILS_ROOT: C:/RailsApps/rgams
Application Trace | Framework Trace | Full Trace
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:492:in
`const_missing''
app/controllers/users_controller.rb:5:in `index''
2012 May 16
7
Rails 3.1.0 cannot connect to sqlite database on Mac Lion
I''m running Rails 3.2.3 on Mac Lion with sqlite 3.7.7 and ruby 1.9.3p125. I need to back down rails to 3.1.0 for a project but when I do that a simple index page give me a
ActiveRecord::ConnectionNotEstablished
error.
Rails 3.2.3 works, 3.1.0 not. Any ideas?
Just to show you it''s nothing fancy....
Gem file is only:
source ''https://rubygems.org''
gem
2007 Jan 19
6
Problem w/ routes.rb
I am trying to develop a new webapp using Rails 1.2.1. I am installing
it onto a production web server running Apache w/ fastcgi. The server
already has some older webapps running on it using an older version of
Rails. The apps are not installed in the document root; they each have
their own subdirectory which is a symlink for the apache document root
to the "public" directory of each
2006 May 31
7
Getting 22 elements
Hello,
I''ve done
===
class HomeController < ApplicationController
def index
@country = Country.find(:all, :include => "cities")
end
end
===
And rhtml is:
===
<% @country.each do |country| %>
<h1><%= country.name %></h1>
<% country.cities.each do |city| %>
- <%= link_to city.name, :action =>
2012 Sep 13
10
access key error
I am getting following error while run my rails app in my server
ActionView::Template::Error (You did not provide both required access keys.
Please provide the access_key_id and the secret_access_key.):
--
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
2005 Dec 29
1
Posting to a separate controller in a functional test
Hi,
I need to post to a controller to log in a user in a functional test,
but I''m not sure what to do to post to a separate controller. I''ve
tried:
post { :controller => :account, :action => :do_login }, { bla bla bla }
But that doesnt seem to have worked. Help?
Mitch
--
Posted via http://www.ruby-forum.com/.
2011 Jun 11
1
Having a problem adding a foreign key
I keep getting this exception "SQLite3::SQLException: no such
column: books.user_id: SELECT "books".* FROM "books" WHERE
("books".user_id = 4)" ,which sounds like there is no user_id in books
table.So i just installed foreigner plugin and added "
t.integer :user_id, :null => false" and
"add_foreign_key(:books, :users)" in book
2011 May 07
11
changing routes.rb
Hi,
I''m a complete beginner and I just have a simple question:
How do I change lines in a file like routes.rb? I know the command type
(i.e type config\routes.rb) but that just shows it and doesn''t allow me
to change anything.
Thanks in advance
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby