similar to: New R website: R-Cookbook.com

Displaying 20 results from an estimated 20000 matches similar to: "New R website: R-Cookbook.com"

2007 Mar 18
8
no route found to match "/cookbook/recipe/list" with {:method=>:get}
Hi, I ve just spent about three hours trying to figure this out, so any help would be appreciated. I ve followed these steps: 1. Downloaded Instant Rails 2. Unzipped it 3. Ran "InstantRails.exe" to configure it. (path is c:\InstantRails) 4. Went to the "Manage Rails Applications" area and chose "cookbook" app. 5. Clicked on "Start with Mongrel" 6. Mongrel
2006 Jul 30
8
Method_missing from Ruby for Rails book
I''m having a problem getting this example from the book to work: class Cookbook attr_accessor :title, :author def initialize @recipes = [] end def method_missing(m, *args, &block) @recipes.send(m, *args, &block) end end cb = Cookbook.new cb << recipe_for_cake cb << recipe_for_chicken beef_dishes = cb.find_all {|recipes| recipe.main_ingredient ==
2006 Mar 22
2
n00b question
Total Ruby N00b here with a question about the Hibbs OnLamp tutorial. I''m trying to hook up to my cookbook database and I''m getting: ActiveRecord::StatementInvalid in Recipe#index Mysql::Error: #42S02Table ''cookbook.recipes'' doesn''t exist: SELECT COUNT(*) FROM recipes RAILS_ROOT: ./script/../config/.. My thoughts: I think I''m not actually
2006 Jun 08
21
"Rails recipes" vs "Rails cookbook"
Reviews Wanted. I''ve read the tables of contents and haven''t yet made up my mind. Is one book clearly better than the other? Is one clearly full of bugs? Is one so much further ahead that there is no choice? Are they both so incomplete that I should just wait and only cook real food? Do trains still have dining cars? Warren Fred -------------- next part -------------- An
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 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
2005 Mar 07
2
0.10.1 Upgrade problems
I just did an upgrade to Rails 0.10.1. It seems to have broken my app. I get this error (nothing works): ActionController::RoutingError (No route for path: ""): /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.5.1/lib/action_controller/routing.rb:258:in `recognize!'' /usr/local/lib/ruby/gems/1.8/gems/rails-0.10.0/lib/dispatcher.rb:32:in `dispatch''
2008 Jul 27
2
Rails Cookbook review
Guys: Stuck at the mall today, and just had to crack Rails Cookbook, by O''Reily. It had a recipe for accepting dynamically created forms. The sample output looked like this (reconstructed): p params[:my_form] > ["1-1" => 0, "1-2" => 0, "1-3" => 0, "2-1" => 0, "2-2" => 0, "2-3" => 0,
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 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
2006 Jul 08
2
NoMethodError in Recipe#index
I''m trying to teach myself Ruby on Rails, and doing the infamous Cookbook as a starting point. I''m all set until the point when I go to create of sumbit my recipe and I get this error: NoMethodError in Recipe#index You have a nil object when you didn''t expect it! The error occured while evaluating nil.name 15: <% @recipes.each do |recipe| %> 16: <tr>
2006 Jul 05
1
newbie question: Mapping Collections
Hi, Day 3 with rails here. Forgive me. If this has been covered many times before, pls just point me at the article. I worked through the Rolling with Rails tutorial (http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html) built up my cookbook. Things work great. I now want to add Ingredients to my app. So, a Recipe will have 1 or more Ingredients and any single ingredient can be
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,
2007 Apr 01
12
How to List Records in Descending Order?
I am brand-new to RoR and have only followed and replicated the few tutorials that are out there. I have searched and searched, but cannot find an answer to this simple question: How can you list records in descending order? I have the cookbook example loaded, but can''t seem to list the recipes in reverse order (by the primary key - id). Thanks ahead of time for any and all help. --
2011 Apr 13
1
Asterisk Tech Tips: Cookin' with Asterisk
Greetings Asterisk Users, I'm happy to announce that Russell Bryant and Leif Madsen have volunteered to host the next Asterisk Tech Tips webinar, next Thursday April 21 at noon central time. Russell and Leif are project leaders and have collaborated on two Asterisk books: Asterisk: The Definitive Guide and Asterisk Cookbook , both published by O'Reilly & Associates. Asterisk: The
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 Jul 09
8
Can the has_many create() method return an ID?
Hi all, I have a has_many relationship, Cookbook :has_many Recipes If I want to create a new recipe in my cookbook I do: cookbook.recipes.create(data) It would be nice if I could then easily get the id of the new recipe, but the create() method doesn''t seem to return anything. Any ideas how? Thanks in advance! Cameron -- Posted via http://www.ruby-forum.com/.
2005 Mar 28
2
using login_generator and the Cookbook tutorial
Hi All, I''ve been fooling around with the login_generator and the rolling with ruby on rails demo, but I''m jiggered if I can get the two to work together. I''ve managed to get everything installed ok, and have created the db and tables, etc. I''ve been using ruby script\generate login Recipe, and I can either the get the basic tutorial to work, or get the
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
2006 Apr 11
4
cookbook2
I am a new user to RoR/ I have been working on RoR cookbook2 tutorial which could be found at http://instantrails.rubyforge.org/tutorial/index.html. As I have been going through different stages through trial and error, but now a stage has come that i m stuck and not able to proceed any further. when it comes to create a list.rhtml in recipe folder under views, and editing the code which is