Displaying 20 results from an estimated 4000 matches similar to: "Rails Recipes Book: Routing Error"
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
2007 Dec 11
2
in_place_edit_for into which plugin?
The docs state that in_place_edit_for has been moved into a plugin for
Rails 2.0:
Module ActionController::Macros::InPlaceEditing::ClassMethods
"DEPRECATION WARNING: This method will become a separate plugin when
Rails 2.0 ships."
and the error messages seem to bear this out:
"undefined method `in_place_edit_for'' for FaqQuestionController:Class"
Anyone know which
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 Feb 03
33
[ADV] Rails Recipes Beta Book is now available
I''m delighted to announce that Chad Fowler''s new book, Rails Recipes,
is now available
as a Beta Book.
This is a great title for folks who know Rails, and for folks who
want to get the most out of Rails. It contains detailed recipes for
doing real-world things with Rails, all illustrated with working
code. Some examples are drawn from Rails 1.1, the rest from Rails 1.0.
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 Feb 06
6
ActionMailer - ROR Recipes - Multipart/alternative
I am using the SaltedHashLoginGenerator. and would like to send the e-mail in multipart/alternative format.
By default my application is using forgot_password_en.rhtml template.
I read in the ROR Recipes book
"ActionMailer sees these templates, recognizes the pattern in their
file names, and automatically sets the MIME type of the message to
multipart/alternative and adds
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 Feb 06
35
ROR Recipes Beta
Yesterday I got the beta version of ROR recipes book and the recipes are great. For those of you still thinking about it, I highly recommend the book.
The only thing I wish is that if there were some more recipes (greedy me), especially AJAX related and installing an application within your current application.
For instance, it will be great to see how one can implement the typo blog
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
2005 Nov 14
0
in_place_editor_field inside a partial collection
(I''ve already posted this to a quite unrelated thread. Sorry for those
reading this twice.)
Did anybody succeeded in using "in_place_editor_field" inside a
partial collection?
It''s working perfectly in a regular template, but the id part becomes
blank when it''s inside a partial collection.
article_controller.rb:
class ArticleController <
2009 Jun 07
6
Missing Template when testing with the Brain Buster Captcha partial
When I run my functional tests, they throw an error with the following
message:
ActionView::TemplateError: Missing template /_captcha.erb in view path
app/views:test/vendor/plugins/brain_buster/views/brain_busters
On line #23 of app/views/contacts/_form.html.erb
20: <%= f.label :message %><br />
21: <%= f.text_area :message %>
22:
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?!
2012 Oct 10
8
link_to with additional data
Hi,
rails 3.2.8
I must be missing something basic (and it''s been driving me mad) because I
am trying to send one additional data attribute to my controller from a
link, but I can''t seem to get it into the params received by the controller.
I have looked around and found answers, but none seem to affect my links.
I''ve set up a dummy app with a home page and a single
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
1
rake db:migrate error: uninitialized constant mysql
Hello,
When I run: rake db:migrate , I get the "uninitialized constant mysql"
error.
I issue the command inside the root of the application InPlaceEditing, a
recipe from Chad Fowler''s Rails Recipes. The InPlaceEditing application
is inside the directory:
c:\instantrails\rails_apps\InPlaceEditing
I can run the InstantRails Cookbook tutorial, no problem, so MySql
itself is
2006 Jan 18
5
Perform action after in-place edit
I want to be able to call an action after performing an edit using the
in-place editor macro. I want to update multiple divs so I was
thinking about using an RJS template. However, I can''t figure out how
to trigger another action after the method created by
in_place_edit_for runs. Is there is an option on Ajax.InPlaceEditor
where I can inject some Element.update calls?
Thanks,
Shane
2006 Feb 21
7
Self-referencial habtm relationship
Heyo!
I am setting up a self-referencial habtm relationship with the users
of my app. I am using Chad Fowler''s "Rails Recipes" to get me started,
and everything works great with the join table "people_friends". I add
friends by doing somebody.friends << somebodyelse. However, with my
app, there is an approval process so my join table has columns
person_id,
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
2006 Feb 06
4
Relationship Question (STI)
My girlfriend and I have been dating for two years, and she just told me she
has an STI...
Actually, I currently have three different models, like: Dog, Whale, Monkey
They all have some similar attributes, but, they are unique enough to
break into their own models. I could use STI, but I think the table would
just have too many columns.
Now, I wanted to let the Dog''s, Whale''s
2006 Apr 25
3
RoR book for beginner
Hi folks,
I see there are two books recommended on the RoR website. As usual I would like
some recommendation from users on this matter.
I am currently a .NET developer and familiar with a few languages outside of
.NET. Which one of these books would be suitable for me to get started with
end-to-end development? Or can someone perhaps recommend a different book they
found useful?
Many thanks,