Displaying 20 results from an estimated 20000 matches similar to: "NoMethodError in Recipe#index"
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 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 Apr 21
4
Problem with the Authorization recipe
I just got the rails recipes book and i couldnt be more happy, but
inside the book there are some details, mostly typos but this one its
one i cant fix, im following the Authorization recipe on page 128 i
create the table and the model, the problem comes when i try to assign a
password to a user in the console, here is the output:
>> justin = User.create(:username =>
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
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 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
3
drag and drop sorting recipe
The new pragmatic Rails Cookbook has a drag and drop sorting recipe. Does
anyone know if this works with 1.0?
I''ve followed the recipe (i think), and I can drag but when I drop
everything goes back the way it was. It seems that the sort logic doesn''t
get invoked.
I put this code in my view:
<%= sortable_element ''task-list'' ,
:url => {
2007 Aug 17
1
Testing webservices in Integration Tests with Jamis Buck's recipe?
Hello,
I''m using Jamis Buck''s recipe to do integration tests on an
application, but I got a nil.recycle! error while doing a webservice
call.
This is the situation.
def test_uploading_data
invoke :upload, data
invoke :upload, even_more_data
real_user_session = new_session_as @real_user
real_user_session.press_magic_button_to_enable_more_uploads
invoke :upload,
2006 Apr 19
1
validates_presence_of
Hi, having a few problems working out whats kicking off,
im using validates_presence_of :title in a models class
this seemed to work fine untill I used a custom new.rhtml
error message I am gaining is
NoMethodError in Recipe#create
Showing app/views/recipe/new.rhtml where line #15 raised:
You have a nil object when you didn''t expect it!
You might have expected an instance of Array.
2007 Jan 25
6
NOT FOUND error
I''ve been hunting the web and reading the mailing lists all day but
I''m not finding any guidance on this problem. When I try to talk to my
mongrel it simply responds with NOT FOUND and nothing else. I can''t
find anything on google because this has to be the second most commond
phrase in existence.
Any help or guidance would be greatly appreciated.
Sincerely,
Chuck Vose
2006 May 18
6
Newbie:problem when using validates*
Hi,
I have performed the cookbook tutorial. Before tailoring the views and
controllers, when I put in the model recipe.rb:
validates_uniqueness_of :title
validates_length_of :title, :within => 1...20
And I tried to introduce some new recipe without the above conditions I
got the message:
---------------------------------------------------
New recipe
1 error prohibited this category from
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 Jul 06
6
Problem with gettext and functional tests
Hi,
I am using gettext to let my web application know several languages. All
works fine, but since I integrated it, my functional tests don''t work any
more.
I keep getting the error message:
NoMethodError: undefined method `cgi'' for
#<ActionController::TestRequest:0xb77f7f88>.
All right, TestRequest doesn''t have a cgi method. Therefore I just included
this into
2006 Jul 17
5
Functional Tests misbehaving with Globalize
Howdy all
Apologies to the folks subscribed to the globalize list for dual
posting this message...
I''ve got a project running globalize and rails 1.1.4, and I''ve only
recently adopted a strong love for testing. Now my models are 100%
tested (I must note that I do not make use of any translations in the
database yet), and I''ve now started with functional tests before
2010 Apr 07
1
[PATCH node] Fix defaulting of OVIRT_CACHE_DIR in recipe makefile
Due to a typo, the defaulting of OVIRT_CACHE_DIR in the recipe
Makefile.am was broken.
Signed-off-by: Mike Burns <mburns at redhat.com>
---
recipe/Makefile.am | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/recipe/Makefile.am b/recipe/Makefile.am
index fb34437..d09905a 100644
--- a/recipe/Makefile.am
+++ b/recipe/Makefile.am
@@ -27,7 +27,7 @@ ARCH =
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
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''
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,
2009 Feb 02
1
OT: procmail recipe question
I'm trying to use procmail and I'm having trouble getting it to set some
headers. I have one mailing list that sets ?Newsgroups: in the header
and I want to remove it. I have the following test recipe:
:0
* ^Subject:.*\<testing
* ^(Mime-Version:|Content-)
| formail -IMime-Version: -IContent-
If I understand it correctly, it should remove the Mime-Verion and
Content headers.
The
2007 Sep 27
5
New R website: R-Cookbook.com
R Community,
I've put together a website that I thought this mailing list might be
interested in: http://www.r-cookbook.com
It's a (free) community-driven content management system for R
"recipes", or working examples. Some of the features of the site are
code highlighting, recipe ratings, recipe comments, personal "recipe
boxes" to save your favorite