similar to: Rails Recipes: where''s the complete code?

Displaying 20 results from an estimated 30000 matches similar to: "Rails Recipes: where''s the complete code?"

2006 Jul 07
13
Rails Recipes Book: Authentication
Hi, The user/login management system in Chapter 31: Authenticating Your Users and Chapter 32: Authorizing Users with Roles of Chad Fowler''s Rails Recipes looks reasonable and adequate. However, when I ran the Chapter 31 code, I get the following error: Username or password invalid And I am not even given the chance to sign in; that is, the signin form does not appear at all. Has
2006 Apr 23
2
Rails Recipes
Rails Recipes ... has got some very appetizing recipes. However, I have a hard time starting. For example, the very first recipe, InPlaceEditing, how and where do I run this code to create the table? Thanks! class AddContactsTable < ActiveRecord::Migration def self.up create_table :contacts do |t| t.column :name, :string t.column :email, :string t.column :phone,
2006 Dec 10
0
Rails Recipes: Drag'n'Drop Sortable List with unique index?
Hi all On page 31 of the "Pragmatic Programmer''s Rails Recipes" book there''s the recipe "Creating a Drag-and-Drop Sortable List". I think this is very useful, but sadly I have a unique constraint on my product_id and position fields (because the acts_as_list scope is product_id). When I try the recipe then Rails crashes very very badly: I have to restart the
2006 Mar 08
3
migrations schema_info table, Rails Recipes Bug?
I have the rails recipes book and i was going through the migrations recipe. Everything seemed to work except for the last part in trying to do a rake migrate with a migration file version 1 and the schema_info version set to 0. Without the force attribute, the rake migration fails, as expected. So the recipe says to run this: ruby script/runner
2006 Aug 06
6
View passing empty or no value to controller -- help
Hi, I have the following view: <%= start_form_tag ( { :action => ''find'' }, :method => ''get'') %> <p> <%= text_field_tag :lemma, params[:lemma] %> </p> <%= link_to "Find It", :class => "submit" %> <%= end_form_tag %> And the following find action in the controller:
2006 Apr 12
0
[ADV] New Rails Recipes Beta Available
Folks: The fifth beta of Rails Recipes, Chad Fowler''s book on writing real-world Rails, is now available. The book now has its full quota for 70 recipes. Here''s the complete list. Part I--User Interface Recipes In-Place Form Editing Making Your Own JavaScript Helper Live Preview Live Search Creating a Drag-and-Drop Sortable List (extract) Update
2006 Mar 18
1
Need help .. Rails Recipes, in_place_editor, selecting associations
Hi, I am currently reading the Rails Recipes book and like the chapter on providing your own in_place_editor for enumerations / selects. I understood so far, or I believe that I understood ;-), how to do that for a field that uses values only, like choosing from "red", "black", "green". What I fail to understand is how to chose from associated objects?!
2006 Apr 24
3
Rails Recipes Book: Routing Error
Hi, I''m working on the first rails recipe, InPlaceEditing, and following the instructions very carefully. After generating the scaffold for Contact, I then go to the page, thus: http://localhost:3000/contacts/ I get this error: Routing Error Recognition failed for "/contacts/" What should I be checking for to resolve this problem? Thanks. -- Posted via
2006 Aug 05
14
Rake aborted! on No Rakefile Found error
Hello, On a command: rake db:migrate I get the "rake aborted!" error. The message is: No Rakefile found (looking for: rakefile, Rakefile, rakebile.rb, Rakefile.rb) c:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1822:in ''load_rakefile'' Checking my setup, I see that Rakefile.rb is in the expected path. Why can''t rake see Rakefile.rb,
2006 Jul 31
3
Missing controller default code
Hello, I generated a controller, using the command: ruby script/generate controller my_kontroller my_model The generated controller file, however, contains an empty class definition. The default controller code is missing. Any idea what went wrong? Thanks, gk -- Posted via http://www.ruby-forum.com/.
2006 May 28
7
Join table not being populated
Hello, I have the usual Categories and Products table scenario, mediated by a Categories_Products join table. When I create a new Product and into a given Category, I notice that my join table is not being populated. Shouldn''t the join Categories_Products table be populated? Thanks, gk -- Posted via http://www.ruby-forum.com/.
2006 Jun 13
0
[ANN/ADV] Rails Recipes is Shipping
Hi All, Pragmatic Dave Thomas tells me that Rails Recipes (http://pragmaticprogrammer.com/titles/fr_rr) is now shipping! He and Andy apparently have over a ton of books to deliver. If you''ve ordered a paper book, it''s soon on the way. If you''ve been waiting, now''s the time. Amazon is also has the book in stock
2008 Jun 01
2
Is Ezra''s RESTful recipe needed anymore?
Hi all, In the recent Advanced Rails Recipes book, Ezra states that Rails needs a little bit of adjustment for its restful routing to work with Facebook. He suggests created an initializer named facebook_overrides.rb and adding this code: http://pastie.caboo.se/206696 But I was just testing restful routing without that code, and Rails seemed to be working fine with Facebook.
2006 Feb 21
1
[ADV] Next beta of Rails Recipes is available
The second beta of Rails Recipes, Chad Fowler''s killer book or writing real-world Rails, is now available. It features seven new recipes: * In Place Editing * Making Your Own JavaScript Helper * Many To Many With Attributes On The Relationship * Dealing With Time Zones * Living On The Edge * Making Your Own Rails Plugins (contributed by Rick Olson, aka technoweenie) * Polymorphic
2006 Mar 09
6
[ADV] New version of Rails Recipes Beta is available
Folks: For your cooking pleasure, I''m happy to announce that Chef Fowler has added eight new recipes to his book: * DRY Up Your Database Config * Adding Behavior to Your ActiveRecord Associations * Keep An Eye On Your Session Expiry * Make your URLs Meaningful (and pretty) * Syndicate Your Site With RSS * Handling Bounced Email * Dynamic Database Configuration * Quickly Inspect Your
2006 Mar 16
1
[ADV] New Beta of Rails Recipes available
Folks: The fourth beta of Rails Recipes, Chad Fowler''s book or writing real- world Rails, is now available. It features nine new recipes (and fixes the PDF bookmark problem): - Secret URLs - Integration Testing - Cheap And Easy Theme Support - Lightning Fast JavaScript Auto Completes - Use Active Record Outside Of Rails - Sharing Models Between Applications - Keeping Track Of Who Did
2008 Feb 26
0
[ADV] Updated Advanced Rails Recipes PDF
Hi Folks, We''ve just uploaded the third beta revision of the Advanced Rails Recipes PDF: http://pragprog.com/titles/fr_arr To get your updated PDF, simply sign in to your account (http:// pragprog.com/my_account) and ask the system to regenerate it. This revision adds 14 new recipes (81 total) from some of the top developers in the community: * Process Recurring Credit Card
2011 Jul 25
0
[PATCH node] Drop F15 build recipes
Due to a critical dracut bug, and a strong dev focus on F16, we're dropping all F15 recipes. Signed-off-by: Mike Burns <mburns at redhat.com> --- recipe/ovirt15-install.ks | 1 - recipe/ovirt15-minimizer.ks | 1 - recipe/ovirt15-pkgs.ks | 2 - recipe/ovirt15-post.ks | 145 ------------------------------------------ recipe/ovirt16-install.ks | 2 +-
2006 Aug 11
2
Shouldn''t CRUD be CRUDS?
With most models, almost always I find myself writing Search/Find actions. When I view a Listing of a model, I want to look at another record or set of records. How nice it would be if I can do a query-by-example while viewing a Listing, or during Show/Edit/Create. Would be nice if Search becomes another act in the scaffolding magic. This wish has been expressed here before. Since then, has
2006 Jul 20
19
Recipes versus Ruby for Rails: what''s best after Agile?
For expats from other languages, what''s the next best step after the Agile Web Dev book: Rails Recipes or Ruby for Rails? Thanks, -- Austin -- Posted via http://www.ruby-forum.com/.