search for: homecontrol

Displaying 20 results from an estimated 38 matches for "homecontrol".

Did you mean: lmecontrol
2012 Aug 28
4
ArgumentError in HomeController#index
...st 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 Need a handler. Supply an options hash that has a :with key as the last argument. I''m not sure what to do here, any help or pointing me in the right direction is greatly appreciated. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are su...
2011 Jun 11
7
"Stack level too" deep with @controller.hi
Hi again, sorry for many questions. In mi HomeController, I have the "hi" method, in this method I use an "if" for show a different message for a registered user or a guest. When I call in "home/index" my method "hi", show me this error message: "Stack level too deep" class HomeController < Applic...
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...
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...
2010 Jun 21
4
Failing Routes in deployment
...nblock end end end When browing to /admin locally, I am greeted by the appropriate page. On the same URL on the heroku version I get a 404. The route shows correctly in ''heroku rake routes'' Logs are showing: ActionController::RoutingError (wrong constant name Admin/ homeController): /disk1/home/slugs/196384_c95a9e3_4463/mnt/.bundle/gems/gems/ activesupport-3.0.0.beta4/lib/active_support/inflector/methods.rb: 103:in `const_defined?'' Any ideas? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To...
2010 Aug 21
4
No route matches?
...ve 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 Site::Application.routes.draw do get "home/index" root :to => "home#index" end # home_controller.rb class HomeController < ApplicationController def index @page_title = "Home" end def view @page_title = "View page" end end and I have two view files in app/views/home: index.html.erb view.html.erb -- You received this message because you are subscribed to the Google Groups...
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: id: "13&qu...
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
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| %> - &lt...
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
2012 May 16
7
Rails 3.1.0 cannot connect to sqlite database on Mac Lion
...ephenson/execjs#readme for more supported runtimes # gem ''therubyracer'', :platform => :ruby gem ''uglifier'', ''>= 1.0.3'' end gem ''jquery-rails'' Routes: root :to => "home#index" home controller: class HomeController < ApplicationController def index end end -- 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 thi...
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''
2011 Jun 11
1
Having a problem adding a foreign key
...ink_to "Add new Book",:controller =>"book", :action => ''new'' %></p> <% @books.each do |b| %> <p><%= b.author%></p> <p><%= b.title%></p> <%end%> HOME CONTROLLER class HomeController < ApplicationController def index @user = current_user @user.books||=Book.new @books=@user.books end end BOOK CONTROLLER class BookController < ApplicationController def new @books = Book.new # redirect_to :controller=>&quo...
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
2009 Jun 23
7
can't get remote_function working on rails 2.3.2
...like the following and does show me the alert box: function lookupWord(t) { alert(''moving forward''); <%= remote_function(:update => "definition_box", :url => { :action => :lookup } ) %> } This is what I currently have in my controller: class HomeController < ApplicationController def index end def lookup() logger.debug(''here'') render :update do |page| page.replace_html ''definition_box'', ''Done!'' end end end There used to be a new line in my routes.rb, but I think...
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
2006 Aug 11
2
Aliasing a table in ActiveRecord.
...ySQL tables, how would I modify a model so that it''s called one thing but references a table of a completely different name. For example: class Recipe < ActiveRecord::Base # The actual table is called "FoodInstructions", but I don''t want to use that. end class HomeController < ApplicationController def index @Recipe = Recipes.find_all end end -- Posted via http://www.ruby-forum.com/.
2008 Sep 08
0
InvalidAuthenticityToken when user adds application through facebook registration
...pleted, the application is automatically added to the user''s account and Facebook displays the following message: Welcome George Tesster! Your account has been created. [application] has been added to your account. Facebook also issues a post request similar to the following: Processing HomeController#index (for 127.0.0.1 at 2008-09-08 16:36:48) [POST] Session ID: b3286f3c51ba8da745b45732-1487557007 Parameters: {"fb_sig_time"=>"1220917013.3643", "fb_sig"=>"95fcf4dabcc91059e5c8452155708142", "installed"=>"1", "action...
2006 May 27
0
Problem with Rcov and Functional Tests
...; error. After investigating and adding some print statements, it turns out that in my WeeklyLineupControllerTest, when I do a ''get'' or ''post'' in the test, it actually invokes get or post on another controller, different from the controller under test, like HomeController. I checked and double checked the @controller = WeeklyLineupController.new line in my setup method. And I run the test just fine standalone, or as part of running all the tests via the rake default task. And if I break my rcov tasks out into 3 separate tasks, one that runs unit tests, ano...