Displaying 20 results from an estimated 1000 matches similar to: "No route matches with {:method=>:get} Error in AWDWR Book"
2007 Sep 25
2
attachment_fu default path
Hi all. I''ve done a little google search, but doesn''t find anything
(with "attachment_fu default path") that could help me in changing
attachment_fu''s default path.
My model:
[audio.rb]
has_attachment :max_size => 20.megabytes
has_attachment :content_type => "audio/mpeg"
has_attachment :storage => :file_system
2007 Aug 17
1
Scaffold (Agile Web Development With Rails)
What am I doing wrong here?
[app/controllers/admin_controller.rb]
class AdminController < ApplicationController
before_filter :authorize
def index
list
render :action => ''list''
end
# GETs should be safe (see http://www.w3.org/2001/tag/doc/whenToUseGet.html)
verify :method => :post, :only => [ :destroy, :create, :update ],
2008 Nov 19
1
controllername_url vs controllername_path
Hi,
''m new RoR.
I was just going thru one book.
I was confused between Controllername_Path() and Controllername_Url()
in RESTful Rails apps.
Can anyone tell me the clear difference?
Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send
2008 Mar 16
3
undefined method `redirect_to'
Hi all. I''m getting the following error in my app:
undefined method `redirect_to'' for ActionController::Base:Class
I''m using Windows 2000, Rails 2.0.2 and resource_controller (from
James Golick).
My controller:
class CommentsController < ApplicationController
include ResourceController::Controller
belongs_to :post, :article, :photo
create do
2009 Jan 13
9
Updating multiple databases at the same time
I have an application that is load balanced. I have a master database
which I update once a day. Then I push the raw mysql files to all other
servers so they are the same as the master. This works fine, but there
are a few situations where I need all databases to update in real-time.
What would be the best way to achieve this in rails?
Here is an example of what I am trying to do. I want to
2007 Nov 03
0
http://manuals.rubyonrails.com didn't working?
I can''t access http://manuals.rubyonrails.com and it gives me 404 error.
Someone knows what''s going on?
Thanks
--
Davi Vidal
--
E-mail: davividal-UiHwsRqXctc1RhZgQKG/ig@public.gmane.org
MSN : davividal-uAjRD0nVeow@public.gmane.org
GTalk : davividal-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Skype : davi vidal
ICQ : 138815296
2010 Jun 18
5
convertir archivo texto en data frame
Tengo un archivo de texto donde cada línea es de la siguiente forma:
"aa-mm-dd hh:mm:ss Nombre Apellido"
¿Hay alguna forma de usar read.table o algo similar para obtener
directamente un data frame que tenga dos columnas donde una tenga la
fecha y quede de tipo PosiX y la otra character con el nombre
completo?
Gracias,
Sebastián.
2009 Feb 09
4
forms that mix new and old records
I''m trying to create a form/view that displays a mix of records that
exist in the database and records that the user is working on but that
don''t yet exist in the database. I want to leverage all of rails'' nice
form helpers, especially the params hash that it generates for the
records when the form is submitted. So - I am creating ''dummy'' records
with
2006 Nov 04
0
New version of the AWDwR beta book available
I''ve uploaded the B1.12 version of AWDwR.
The major changes include:
- Justin Gehtland''s new chapter on Web 2.0
- James Duncan Davisdon''s chapter on deployment (this is an
interesting one---JDD has strong opinions on how a Rails
application should be deployed, and the chapter mirrors this.
You''ll find it short and easy to follow).
- I changed the
2009 Feb 18
5
fields_for and Conflicting types for parameter containers. Expected an instance of Hash but found an instance of Array.
I''m trying to use ''fields_for'' in a form. I want the same form to
support both the creation of new obejcts as well as the editing of old
ones. So - in my controller, sometimes I will pass to the form an
object that already exists in my database and has an id and other
times I will pass it a newly created instance of an object that does
not yet exist in the database and
2010 May 08
3
Count cases in a list
Hi everybody, I would like to count how many times names in list L,
nombreL, apear in list C, nombreC.
Can I improve the next program?
cuenta <- 0
topL <- length(nombreL)
topC <- length(nombreC)
for (i in 1:topL) {
for (j in 1:topC) {
k <-
grep(noquote(nombreL[i]),nombreC[j])
2006 Mar 15
4
New RadRails tutorial using AWDWR book
Hello there,
I am basically a J2EE refugee fascinated with Rails.
I have been using the Spring framework (a lightweight J2EE java framework
with some special characteristics) but I am so impressed with RoR that I am
porting over many applications.
In order to "dive into Rails", of course the second thing to do was get
myself an IDE, and since I''ve been using Eclipse for the
2010 Jan 25
1
Using Protect filter on a merge rules file
Hy, I've a strange problem using rsync version
3.0.6 protocol version 30:
My /etc/rsyncd.conf:
---------------------------------------------------
...
[bianco-home]
read only = no
filter = . /etc/rsync/filter/bianco-home
path=/home/bianco/
list = yes
use chroot = no
auth users = bianco
uid= bianco
secrets file = /etc/rsync/rsyncd.secrets
...
2005 Jul 28
2
Win95 on a Samba3+LDAP domain on a Debian box
Hi folks,
I have successfuly migrated a WinNT 4.0 Domain to a Debian server with
Samba3+Ldap following the Samba-3 by Example guide from John H. Terpstra (an
impressive good guide) and The Linux Samba-OpenLADP Howto from Jerome Tournier &
Olivier Lemaire.
The domain holds about 800 accounts. There are WinNT servers, WinXP and Win95
clients belonging to it.
WinNT servers and WinXP clients
2006 Feb 07
1
AWDWR: NameError (uninitialized constant UnknownAction) in rescue_action_in_public
I copied (and modified) this code from AWDWR:
def rescue_action_in_public(exception)
case exception
when ActiveRecord::RecordNotFound,
ActionController::UnknownAction
render :template=>''/error'', :layout=>''application'',
:status=>''404 Not Found''
else
render :template=>''/error'',
2006 Aug 14
1
AWDWR Chpt6: Webrick Get...200... then ...500...
Hi, Rails produces to diff Gets on the Webrick:
AWDWR Chpt 6 strange results:
First browser call to /Admin shows correct form; - And WEBrick reports:
"Get /admin HTTP/1.1" 200 485 - -> /admin
Subsequent browser calls to /Admin show:
NoMethodError in AdminController#index
undefined method `each'' for #<Mysql:0x37aba80>
- And WEBrick reports:
"Get /admin
2006 May 05
0
(P)review of AWDwR and R4R
Hello,
A lot of discussion is going on about AWDwR 2nd ed, i have decided to
write an entry about it (and R4R) after reading few chapters:
http://www.rubyrailways.com/fisrt-impressions-of-awdr-2nd-ed-and-r4r/
Cheers,
Peter
2006 Aug 02
2
Help please: AWDWR -- Migration failure
I''m having a problem with one of the migration files from the depot application.
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:migrate
== AddPrice: migrating ========================================================
-- add_column(:products, :price, :decimal, {:scale=>2, :default=>0, :precision=>
8})
rake aborted!
You
2006 Jun 14
0
[AWDwR] Make flash[:notice] go away
Following the tutorial app in Agile Rails, I''m trying to figure out the
best way to get the flash notice to go away after an "Invalid product"
is selected (eg. when a new, valid product is selected). This is after
Task D, Chapter 9, in the 2nd Ed Beta.
I''ve come close to getting to work right, but I think I may still be
missing something in the control flow of
2008 Feb 06
1
Try-Catch AWDWR P3.0, Sect9.2,Mid pg 121.
On page 118, file store_controller.rb, the "redirect_to_index" is added.
At mid page 120, that line is removed. When the browser is first sent to
the ":3000/store", the page displays properly. But when the Add to Cart
button is clicked, the browser displays the text of a try-catch block
(see below). There is no error message - the browser clearly sees text
to be displayed. If I