similar to: Another question about the tutorial

Displaying 20 results from an estimated 10000 matches similar to: "Another question about the tutorial"

2006 Aug 13
5
Newbie question: scaffold not working
I went through a tutorial at http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html?page=1 to get started with RoR. I really like the idea of the scaffold construct, but I can''t seem to get it to work the way it was described in the tutorial. I''ve got a mysql database that is properly configured, and a table called ''quotes'' with a column called
2005 Mar 02
1
404 and NameError
Hi guys, I was wondering if anyone knew a fix for this problem I have. I''ve ported one of the apps I work with to Rails 0.10.0 to use Routes. Everything works great, except for 404 pages. The thing is that if I give a non existent path, I get the correct 404 error page back. However if I request a non existent file such as test.php (in fact anything non existent that isn''t a
2005 Apr 06
3
NameError in <controller not set>#<action not set>
I can''t figure out why I''m getting the following error. There''s nothing wrong in my communities_controller file. And the helper for communties exists. Any ideas? Thanks, Joe NameError in <controller not set>#<action not set> uninitialized constant CommunitiesHelper app/controllers/communities_controller.rb:1 script/server:48 Show framework trace
2006 Nov 04
2
strange errors in dev.log and webserver log
Hi guys, I have encountered a strange error in one of my applications. The details are the following: The application is a very simple one, I have one model, Cards, it has some pretty basic stuff, some after_save methods for saving uploaded files to their places. I have an UI where I can manage the Card records, with the default methods, including ''edit'' cards_controller.rb:
2006 May 03
0
Newbie Help
Is it my environment? Is something wrong, cause I thought this should just work? I have a simple table and I created a model and a controller: ruby script/generate controller Restaurant ruby script/generate model Restaurant I edited the controller to this: class RestaurantController < ApplicationController scaffold :Restaurant end I run it and: http://0.0.0.0:3000/Restaurant works
2006 Aug 25
6
End-of-File Error occured at <except.c>:103 in xpop_context
Hi, I get this when searching or adding a new record. I am using today''s version of trunk and gem ferret 0.10.0 any ideas? thanks! EOFError in DvbesController#new End-of-File Error occured at <except.c>:103 in xpop_context Error occured in store.c:197 - is_refill current pos = 0, file length = 182 RAILS_ROOT: script/../config/.. Application Trace | Framework Trace | Full
2006 Mar 28
0
MySQL problems and undefined class User
Hello I''m having some issues with MySQL losing it''s connection, or undefined class User on Windows XP. I use Login and UserEngine. Rails 1.0/1.1, MySQL 4. MySQL problem (one of them): Mysql::Error: Lost connection to MySQL server during query: UPDATE sessions SET `data` =
2006 Jun 23
0
Date class giving errors
Any time I try to use any methods of the Date class, I get errors of ''invalid date''. For example, I have this happening: With the code Date.today, I get this error from Rails: - - - - - - - - - - ArgumentError in Student#show Showing app/views/student/show.rhtml where line #10 raised: invalid date Extracted source (around line #10): 7: <p> <%=
2005 Jul 29
3
More issues with Rails Book Cart tutorial.
I am presently trying to get the cart section (chapter 8.) working and after following the instructions as carefully as I can determine I am nonetheless getting the following errors: URL=http://localhost:3000/store/add_to_cart/10 NameError in Store#add_to_cart undefined local variable or method `parms'' for #<StoreController:0x376ee60>
2007 Aug 17
1
Scaffold (Agile Web Development With Rails)
What am I doing wrong here? [app/controllers/admin_controller.rb] class AdminController < ApplicationController before_filter :authorize def index list render :action => ''list'' end # GETs should be safe (see http://www.w3.org/2001/tag/doc/whenToUseGet.html) verify :method => :post, :only => [ :destroy, :create, :update ],
2006 Sep 12
1
Ferret on Windows?
I am trying to use SVN HEAD of Acts_as_ferret, and I have ferret 0.10.4installed from the windows Gem. Unfortuanantly, whenever I i let act_as_ferrets init.rb file require ferret, my app blows up, with weird "Invalid char" errors. I have pasted the page below. If I comment out the require ferret, the page loads. Of course, act_as_ferret does blow up. My unit tests do work fine
2008 May 13
0
Problem geting web interface to work
Hi, i have installed CruiseControlRB 1.3.0. With no project added the web interface at localhost:3333 looks find. I have successfully added one of my projects (batch file which builds some c++ code) which is also building fine. But the web interface is no more working - i get the following message "Errno::EINVAL in Projects#index". I have attached a log (run with --trace) which
2006 May 30
0
Problems when applying search to filter rows.
Hello, I am trying to create in the main Layout of the application fields of selection of fields of the model, and other to insert its value. Next I put a search button, with the idea to leak by the search in the view of the model where it executes this button. I have generated the views with ajaxscaffold. I do not know if what I try to do it does of this form or another one. My code is the
2006 Jan 24
1
Newbie: Cookbook Application problem with MYSQL
Hi everybody, I''ve been reading lot of material about Ruby on Rails, and it looks like really rocks. I''ve downloaded the one-click version for Windows and started to build the example cookbook app, found in: http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html?page=1 Everything looks good, but when I''m trying to create a new Recipe
2007 Mar 24
0
overloading to_json with JSON gem installed causing error
I installed the JSON gem because I wanted the JSON parser. Before installing the JSON gem, overloading worked fine. Before I remove it, I''d like to see if anyone has an idea of what is going on. It''s the only JSON parser I''m aware of, so it would be a bummer if it didn''t work. After installing, if I overload the to_json method in the class, it gives me the
2006 Jan 15
0
OS X Rails - Nuby
OK, I''m diving into new things - a .net programmer and windows user trying to develop in Rails on my Mac. Initial setup was easy, and I had things working and was thrilled with myself. Then I shut down. Next time I booted up, mysql was acting all kinds of funny. I finally got that working again (I *think* it mostly had to do with me not having the right path, I unfortunately
2006 Jul 12
0
Strange error
Has anyone ever experience this error? I''m not sure where to trace it back to. Showing usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/templates/rescues/_request_and_response.rhtml where line #40 raised: wrong number of arguments (1 for 0) Extracted source (around line #40): 37: <p><b>Parameters</b>: <%=h request_dump ==
2006 Apr 21
3
Called id for nil, which would mistakenly be 4 -- if you really wanted the id of nil, use object_id
Hi I am a newbie to Ruby on Rails, but experienced in programming. I am trying out Rolling with Ruby on Rails article by Curt Hibbs on onlamp.com. I have encountered following error: Called id for nil, which would mistakenly be 4 -- if you really wanted the id of nil, use object_id I searched the archives of the list and found that similar question was left unanswered. I do understand from
2006 Apr 17
7
Action Controller: Exception caught
Hi, I''m running the cookbook example from ONLamp.com. I have tried to test my site and it comes up with the the message on the site: ActiveRecord::StatementInvalid in RecipeController#index Mysql::Error: Lost connection to MySQL server during query: SHOW FIELDS FROM recipes RAILS_ROOT: ./script/../config/.. Application Trace | Framework Trace | Full Trace
2006 Apr 10
0
TaskThis undefined method `remembrall_expires'' for #<User:0x
This happens before each login attempt. Please note that if I click on the refresh button of my browser I then login succesfully. Any hint? -- fabio vitale NoMethodError in AccountController#login undefined method `remembrall_expires'' for #<User:0x351f238> RAILS_ROOT: ./script/../config/.. Application Trace | Framework Trace | Full Trace