Displaying 20 results from an estimated 20000 matches similar to: "docs for map.resource"
2006 Jul 03
1
flash[:notice] followed by render
Hi,
Sometimes I see action code like
def my_action
flash[:notice] = "Flash notice"
render
end
It is even in DHH''s new World of Resources slide show page 22. With
this use of flash before render, the user will see the flash for the
next two visible displays. Am I missing something?
Thanks,
Peter
2006 Jun 28
0
ActiveResource (was: 1.1.3 available.)
2006/6/28, Paul Barry <mail@paulbarry.com>:
> Where can I find info about the "CRUD/resource-based features" that will be
> in 1.2.0?
In blogs. Especially about Railsconf and DHH''s keynotes.
In trunk : http://dev.rubyonrails.org/browser/trunk/activeresource
In DHH slides :
Transcription of some slides from DHH''s talk at RubyKaigi 2006
(I suppose it must
2006 Feb 18
44
I forgot. Why do we hate* Java?
Hi,
I''ve started reading some Java books. Gasp! What makes website
development with Java so bad? I haven''t looked at Struts but I''m
reading about Hibernate. Compared to ActiveRecord, Hibernate seems
like some extra typing to explicitly define the model fields, getters
and setters. I know that these are things that you can do in
ActiveRecord when things get complicated
2006 Jan 19
7
validates_numericality_of positive integer
Hi,
What is the simplest way to validate a positive integer?
validates_numericality_of :foo, :integer_only => true
how do I add the positive part? Do I need another validation statement
for pattern matching or do I have to write a validate() funciton for
my model?
Thanks,
Peter
2006 Jul 20
16
Juggernaut Released - (a.k.a Armageddon)
I''ve just released Juggernaut - a plugin for ruby on rails.
Check out the site: http://juggernaut.rubyforge.org
I?ve also finished a demo that illustrates some of Juggernuat?s
capabilities. You can sign up for an account here:
http://alexmaccaw.no-ip.info:3500/login/sign_up . It might be a tad slow
as it?s running from my home machine.
Juggernaut for Ruby on Rails initiates a flash
2006 Jul 12
6
So what is REST? I don''t get how it fits in Rails
Does someone have an actual example of this? I saw DHH''s slides where
he said that you could have your app automatically respond with HTML,
XML, atom, whatever. So far I''ve found tons of discussion on REST and
CRUD in Rails, but I haven''t seen anything that actually shows me what
it all is. There''s simply_restful, which apparently makes things
easier...I
2006 Apr 26
10
save new model with child model
Hi,
I am having a problem saving a new model that has an associated child
model. If a new ticket is being created and will have one comment to
go with it then I tried this in my action
@ticket = Ticket.new(params[:ticket])
@comment = Comment.new(params[:comment])
@ticket.comments << @comment
if @ticket.save
@notice = "Ticket added. Thanks for
2006 Mar 22
14
currency conversion webservice in a rails app?
Hi,
I''m interested in using a currency conversion web service in my rails
app. Does anyone have a free service that they use and like? I found
this one
http://www.webservicex.net/WS/WSDetails.aspx?CATID=2&WSID=10
I''ve tried to make a simple, plain Ruby script to connect to this and
get a conversion rate without success.
How do I integrate a webservice into my rails app? I
2006 Jul 07
5
Can a route require POST or GET? / REST problem with routing
Hi,
A store front a customer wants to GET /product/5/show. But for the
application this is really GET /cart_item/new/5 or even better
/cart_item/new?cart_item[product_id]=5
When the customer clicks add_to_cart they POST /product/5/show so that
the url doesn''t confuse the user when any validation errors occur. But
for the applicaiton this should be POST
2006 Aug 11
9
Getting Really Started with Rails - Tutorial styled Slides Available
For those that missed out joining the amazing turnout of ~70 people here in
Vancouver for the mini-workshop I did on the 27th last month, I am making
available the 30 slides I used for the presentation.
The slides were used in conjunction with me demonstrating it via command
line. Alot was learned by both attendees, and quite possibly even more so by
myself while teaching the material.
I created
2006 Jan 26
8
switching to edge rails
Hi,
I want to start using has_many :through. I think that eventually I''ll
be removing all uses has_and_belongs_to_many from my project.
Here is my situation
I''m using SVN
I want to use edge rails
Reading the wiki about switching to edge rails[1], I can''t figure out
which combination of subsections I must perform.
Do I want edge rails to reside in the vendor
2006 Apr 01
4
problems getting ActionMailer working (on server)
Hi,
I''ve read the Agile Rails book''s chapter on ActionMailer a few times.
Seems pretty straight forward. Unfortunately I can''t get my
application to actually send mail.
I uploaded my application to the web server and tried to get a mail
message sent. Nothing happened. I looked in the log file and it says
Sent mail:
From: service@freedomkilts.com
To:
2006 Apr 26
3
catch all error for incorrect urls etc
Hi,
I am changing a very standard old school website to rails. When I make
the change to rails, all of the old urls will not be valid. If a
person has a bookmark to an old web page I would like them to be
directed to the front page of the new website www.domain.com. How do I
do this? Do I do something in routes.rb?
Thanks,
Peter
2006 Feb 09
2
_marker in dragdrop.js
Hi,
I''ve been confused about the purpose of _marker in dragdrop.js for
quite a while. It doesn''t really look like it does anything with
ghosting on or off. I removed the mark method and didn''t discover any
problems. Is all the mark business a relic from some past idea?
Thanks,
Peter
2006 Jan 23
4
an image that is a clickable link?
Hi,
How do I make an image that is a clickable link the rails way? Is
there a view helper for this?
Thanks,
Peter
2006 Jan 15
2
removing old rails docs after updating rails
Hi,
When I start gem_server and look at localhost:8808 I can see multiple
version of actionpack, activerecord etc. Is there a command to delete
the old documentation after I update rails?
Thanks,
Peter
2006 Jan 05
1
[REQ] Document, post, DHH talk about "Why Rails ?"
Hello,
I''m writing internal slides (fr government) presenting RoR, perhaps
soon in CC licence.
Can you point me to some reference where "Rails History" or "Why DHH
choose to develop is "own" Framework" are discuted ?
In fact I try to answer the background question "Why another framework ?"
Thanks!
Ciao''
2006 Mar 08
12
favorite FTP client of railers
Hi,
Which FTP client would fit in nicely with OS X and Textmate.
Thanks,
Peter
2006 Sep 12
1
acts_as_taggable -- which one?
There appear to be three acts_as_taggable implementations and I''m looking for
a recommendation on which to use.
- Gem
- DHH plugin
- Dema mixin
The Gem implementation appears to be obsolescent, from what I can read on
the lists and Google search.
I like that the DHH plugin uses polymorphic associations because there will
be lots of different taggable items in my application; however,
2006 Jan 15
9
DHH''s dislike of high level components
On 1/5/06, David Heinemeier Hansson wrote:
>
> The lure of components is directly proportional with the pain of development.
I''m not trying to be abrasive in any way but I''m curious if this
attitude is related to the number of rails apps David maintains. No I
don''t know how many login systems David maintains. I can understand
avoiding components if a person only