similar to: Four Days on Rails

Displaying 20 results from an estimated 9000 matches similar to: "Four Days on Rails"

2006 Feb 09
13
Howto work with a page not generated by the scaffold ?
I am a newbie Ruby and RoR user. In my tests using the turorials that I found over the web, everthing is working fine and I am very impressed about RoR framework. As I am a Delphi developer, without any web development experience, There is some thing hard to understando and I didn''t find a tutorial about this. I wonder how to create a non-scaffold page ? I have customers,
2006 May 09
2
newbie: OSX Ruby/MySQL issue?
I''m three pages into the OnLamp RoR Tutorial [1] and am wrestling with what appears to be a MySQL connection problem. I''ve created a simple controller called "recipe" with a corresponding "recipes" mysql table. The recipe controller is just a simple scaffold. When I browse to "recipe/new", though, I get these errors: == NoMethodError in
2006 Jun 06
4
Rails keeps adding the letter s to the MySQL tablename.
I followed this tutorial for Ruby on Rails... http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html?page=1 Everything went fine. I created the DB in MySQL and tested the recipe/new and recipe/list functions, and all went smooth. Now I''m trying to use Ruby on Rails to track software licenses here at work and I keep running into this strange problem. I am setting up the DB,
2006 Jun 21
1
Newbie Four Days on Rails
Hi all, Having successfully gone through Bill Walton''s Tutorial ''Rollining with Ruby on [Instant] Rails'' I decided to tackle John McCreesh''s ''Four Days on Rails'' Tutorial. I changed the Rails version as recommended in the tutorial. All went well until I entered the following command:- ruby script/generate model category I got:-
2006 Jul 07
8
Possible name clash?
Scenario: Table in database has two fields, id and category (table name is: categories) Controller is named category_controller.rb Model is named category.rb Helper is named category_helper.rb Form is named list.rhtml in view\category directory The code in play on the form is (from generating scaffold): <% for category in @categories %> <tr> <td><%=
2006 Feb 27
8
Newbie question - Automatically update _form.rhtml?
Hi all, I''ve got an odd issue. I''m new to Ruby/Rails and have a bit of a silly question. I''m following along with the nice little tutorial here, to get an idea of the system: http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html?page=3 However, I''m running into an issue where the author adds a new field in his database, refreshes the browser and shows
2006 Mar 23
11
Contact page
Hi I have justed started using Rails. How do I create a contact page. By this I mean one with a contact form etc. Thanks -- Posted via http://www.ruby-forum.com/.
2007 May 30
2
Bug? Filter chain halted as [#<ActionController::Filters::..
OK so I''ve been trying to follow the tutorial here: http://rails.homelinux.org/ When I simply do "scaffold: category" in the controller.rb, everything works fine. BUT after I generate the controllers and other files using scaffold AS A SCRIPT (script/generate scaffold categories), DESTROY (or DELETE) does not work for any record in a table. This is the error I got: Processing
2006 Jun 12
3
Weird problem related I am having with scaffold
i, I have this in expense_controller.rb: class ExpenseController < ApplicationController scaffold :expense end It works fine, but let''s say I want to override scaffold''s list. For some reason, just making list.rhtml in views\expense is enough, and there''s no need to add def list end in expense_controller.rb. However, that''s not my real problem. Now
2006 Feb 27
3
form questions
I have a very simple form that looks allows an input for an error code and then give the show page from the scaffolding if the error code is in the database and a notification on the list page, again from the scaffolding if not. Here''s the form: find.rhtml <h1>Find error</h1> <%= start_form_tag :action => ''search''%> <p><label
2006 May 24
6
newbie question: missing template
Hi I''m new to this forum and new to Rails so excuse me if this is a daft question. I''m following the ONLamp.com tuturial and all has been well untill changing the template for the recipes. I have followed the instructions and added this code to the controller: class RecipeController < ApplicationController scaffold :recipe def list @recipes = Recipe.find_all end
2006 Jun 07
1
Four Days with Rails Issue
Hi, I''m trying to get through the popular "Four Days with Rails" tutorial and am experiencing some problem with the "Priority" of the item. Right from the start, RoR seems to want to consider it as a value that must be boolean. The scaffolded code asks for "True/ False" as the input. PHPMyAdmin shows that the database thinks it should be an unsigned
2005 Sep 22
5
Adding Categories to the Depot example in the Agile Rails book
Hi ya, I want to add categories to the depot example in the Agile rails book. These are my thoughts: Create a new table called categories with id, title, description, and image fields. Add a new field to the products table called category_id Create a model called Category with "has_many :products" Now I should have a one to many link between the products and categories tables? Now
2006 Feb 20
4
how to set a simple application in Apache?
I am not familar with the RoR site stucture on Apache. I did this but.it doen''t work. I only want to output a word on a page with RoR. I did this 1. >cd public_html (enter web root) 2. >rails sayhello 3. >cd sayhello 4. >cd app 5. >cd controller (enter controller folder) 6. edit application.rb def hello end 7. cd views (enter views folder ) 8. add a
2006 Dec 20
1
Problem with mysql connector adding "s" to the end of querries
I am a beginner with ruby and was working through some basic examples from Onlamp where I create a basic controller and model, use the scaffold command, and edit my database.yml file to point it to the correct database. The problem I am having is that no matter what I do, I continue to get a mysql db connection error when I web to application. It seems that my connector is trying to connect to
2006 Jan 06
2
beginner: help using <select> drop down list
Hi, first time posting here. I''m in the process of learning ruby and the rails framework and i''ve come to a road block. I started off by using the Onlamp tutorial online and got a test database and all of the generated scaffold pages. I am currently working on a drop down box using the select tag. I figured out how to get values from a ''name'' column in my
2008 Apr 18
1
rails for dummies
Hellos all, I''m new to this so I have one really stupid question. When I make my website is the whole thing going to be encoded in my_test_controller.rb if I do ''ruby script\generate controller MyTest'' as "ONLamp" says to do? http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html?page=2 Cheers, Paul --~--~---------~--~----~------------~-------~--~----~
2006 Jun 16
5
Application Error
Hi Folks, When I have tried this cookbook example from onLamp tutorial, I got some error like this, output of development.log is ---------- Permission denied - /var/www/html/cookbook/public/../config/../tmp/sessions//rub y_sess.d51d8997edf6be91 only the first line of output is this, output truncated. --------- what it will be ? How to solve this ? In my browser, I am getting Applicaiton
2018 Feb 24
6
Really slow IMAP performance
Aki Tuomi <aki.tuomi at dovecot.fi> writes: >> On 24 February 2018 at 15:47 Neil Jerram <neil at ossau.homelinux.net> wrote: [...] >> > Feb 24 10:24:24 arudy dovecot[1712]: imap(neil): Warning: >> > Transaction log file >> > /home/neil/dovecot-mail/.imap/INBOX/dovecot.index.log was locked >> > for 98 seconds (Mailbox was synchronized) [...]
2006 Jul 24
3
Customize list.rhtml to display only certain db columns
Hi, Very new to RoR; have been a flash developer for four years or so. I have an urgent question -- in the list.rhtml file, I only want to display certain columns instead of dumping out all the columns in the database. Could someone shed some light this topic? Thanks!!! Sam -- Posted via http://www.ruby-forum.com/.