similar to: cookbook2

Displaying 20 results from an estimated 10000 matches similar to: "cookbook2"

2006 May 09
6
Still Stumbled on First things in trying RubyOnRails
Still Stumbled on First things in trying RubyOnRails http://www.digitalmediaminute.com/article/1816/top-ruby-on-rails-tutorials http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html http://instantrails.rubyforge.org/tutorial/index.html http://rails.homelinux.org/ I had tried the first of the top 12 tutorials and got stuck after adding a new field ?category_id?in the table recipes,
2006 May 21
8
Rails and Postgres
Hi, I''m new to Ruby on Rails and am having a little difficulty working through the ''Rolling with Ruby on Rails'' tutorial. Can anyone help? I''m trying to get the cookbook application to work via a Postgresql db. But get the following error when trying to access http://127.0.0.1:3000/recipe/new Errno::EINVAL in RecipeController#new Invalid argument
2006 Mar 29
11
why belongs_to does not like validation?
This works : class Recipe < ActiveRecord::Base belongs_to :category end But (when I add validation) this does not work : class Recipe < ActiveRecord::Base belongs_to :category validates_length_of :category, :within => 6..20 validates_uniqueness_of :category, :message => "already exists" end thank you -- View this message in context:
2006 Jan 23
2
scaffolding generators and pluralization rules
I''ve been working through the "Rolling with Ruby on Rails" tutorial and have come up against something I''m hoping someone here can help me understand. In part two of the tutorial, Curt introduces the "ruby script\generate scaffold re -------------- next part -------------- An HTML attachment was scrubbed... URL:
2005 Sep 25
7
(newbie) Missing Template Error using Rolling With Rails Tutorials
Hi all, New to the list, Ruby, & RoR. I''ve been going through the Rolling With Rails tutorial, but am getting the following error when the instructions tell you to add the @recipes = Recipe.find_all line to the RecipeController: Template is missing Missing template ./script/../config/..//app/views//recipe/index.rhtml The index.rhtml file is right where it''s supposed to
2006 Jan 19
6
One Last Question for me..
And then I should be ready to roll with my project.. I have some fine tuning of the looks to do after, but funtionality first! This is probably a rails question.. but I''m not sure where to sign up for the rails questions email group? (I guess I turned this into a 2 question email). I''ll ask here and then if someone will send me the url of where I go to sign up for the rails
2006 May 07
6
RuntimeError in Recipe#edit
I have tried to learn ruby on rails from scratch by going into a tutorial at the following website. http://instantrails.rubyforge.org/tutorial/index.html I followed the suggestions and encountered 3 problems so far. 1. Couldn''t start the Apache server. Error message "Port 80 was used by some other process." I over-came the problem by going into configuration and change the
2006 Jan 02
19
AR: How to store and restore in YML.
Hello- I have a database with entries that are segmented by customers. I would like to be able to store / delete / restore a particular customer''s information. I will need to rebuild the rows on restore and also rebuild the associations for the different tables. For example, customer { id name } companies { id customer_id (belongs_to) name } contacts { id
2006 May 07
6
Unable to get past Tutorial 1 in RubyOnRails
Unable to get past Tutorial 1 in RubyOnRails On 29 April 2006 I met some one in a Microsoft sponsored developers? community gahering. I was told that ruby on rails is a free software, easy to use, and in no time will have my mind blown with all the wonderful prospects and possibilities. After almost a week, I am still unable to get past tutorial 1 and still unable to make any tutorials work
2006 Mar 23
6
easy scaffold question(s)
I''m doing very well with the Hibbs Rolling on Rails tutorial. I have an easy question for my personal notes. I''m coming up with a simple framework of steps for creating a basic database. It includes the following maxims to make original app creation easy: app_name = MySQL database name SQL_tablename = model_name model_name = controller-name Is this going to work for getting
2007 Feb 04
4
problems with tutorial
I''m having some trouble with the instructions at the link below: http://instantrails.rubyforge.org/tutorial/restarting_the_dev_env.html I had started at the tutorial at http://instantrails.rubyforge.org/ tutorial/index.html and had gotten as far as creating the cookbook2 exercise and had gotten to the "Welcome aboard you''re riding ruby rails" screen in explorer, but
2006 May 15
2
Error creating controllers in InstantRails-1.3a
Hi, I was able to successfully Install InstantRails-1.3a and run cookbook throgh Apache and WEBrick , however when I try to create my own app. cookbook2 following tutorial ( http://instantrails.rubyforge.org/tutorial/index.html) , it gives me below error whle creating MyTest controller Cannot find gem for Rails =1.1.2: Install the missing gem with ''gem install -v=1.1.2
2006 Jun 18
6
integer array columns
Postgres database. I have a categories table, with two columns id, and name. I have a recipes table, with a category_ids column. I want each recipe to belong to one or more category. in recipe_controller.rb I have this: def create @recipe = Recipe.new( @params[''recipe''] ) @recipe.category_ids = @params[''recipe''][''category_ids''].map{
2006 Jul 16
2
Can scaffold do tall tables instead of wide?
I''m trying to get data in rows instead of columns by default. The default scaffold behavior is to create an initial table layout with column headers along the top. In some cases this creates really wide tables which require horizontal scrolling. Is there a parameter I can use with scaffolding or a hack to get the header cells along the left side of the table instead? I''m
2006 Jan 06
3
Cookbook recipes eg - ordering categories in the recipe pull-down box
People, I can order categories when looking at the categories list page but how do I change the recipe page to list the categories in alpha order in the recipe pull-down box?: > <p><b>Category:</b><br> > <select name="recipe[category_id]"> > <% @categories.each do |category| %> > <option value="<%= category.id
2005 Mar 09
9
Unit testing + instance variables
After *much* digging and playing around, I finally figured out how to unit test instance variables that are created by actions. It was more difficult than I expected. It seems like there should have been a more straight forward way to do this. Can someone enlighten me? A simplified and somewhat contrived example of what I am current doing: Thanks. Matt >> # My Controller of interest
2006 Jun 01
10
Stylesheets not being recognized
I am a newbie, but have worked through 4 or 5 tutorials. I am using InstantRails. The problem is that I cannot determine how the style is being included. I have modified the stylesheet from /public/stylesheets/, even removed it. All to no avail. The inline <style>...</style> code is still being included from somwhere. Where? What am I missing? thanks, steve -- Posted via
2005 Mar 06
2
Recipe Browser 0.4.1
I am please to announce the release of Recipe Browser 0.4.1. This project (and files) can be located at http://rubyforge.org/projects/recipe/. This release brings Recipe Browser up to Rails 0.10, with a handful of bug fixes. Special thanks to E Gard (x2egard) the newest member to the project who also happened to do all the work for this release ;). We would love to hear any questions,
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 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