Displaying 20 results from an estimated 8000 matches similar to: "Book Question on RoR"
2006 Jul 06
6
Help with overriding / overwriting date values in ActiveRecord to accept Euro Style Date from a Textbox
Hi guys,
I''m trying to make an AR model which accepts a string data (from a
text input) in euro date format
eg
<input .... value = "23/01/2006"> ( 23 Jan 2006)
Reading the example from RDoc... i tried to
overwrite/overload/override the = function to write in the date..
Cant get it to work because .. i dont knoe what format should it
accept.. i''ve tried
2006 Jul 12
9
Instant Rails Screencast
I created a screencast showing how you can use Instant Rails to get a
fully functional Rails environment running on Windows in under 5
minutes.
Get started with Ruby on Rails in less than 5 minutes
http://mattgriffith.net/PermaLink.aspx?guid=97aa05b7-2e38-4c7d-b184-45ab2e2715b9
Right now the video is only available in Windows Media. Eventually there
will be a flash version available too.
2006 May 16
18
Ruby''s purpose?
Before I get flamed, I just want to start off by saying that I am new to
Ruby and I really enjoy this language and want to see it succeed.
But, what niche does this language fill?
These are serious question, not a put down of the language.
Does it has something to offer for Web 2.0?
Is it just another scripting language?
Does it suppose to replace something else?
Does it suppose to work with
2006 May 11
7
Rails in Dr. Dobbs Journal ?
Hi,
I''ve read that Dr. Dobbs Journal''s last issue has a cover article about
Rails titled "Ruby On Rails - Java''s Successor?". Can''t find anything
about it in http://www.ddj.com
Does someone have the paper edition and can confirm that, and tell
how the article looks like, and so on.
Thanks,
-- Jean-Fran?ois.
--
? la renverse.
2006 Jul 13
2
find_by_id(nil) does not always return nil
I have a model named User. When running this application from the
console I can call User.find_by_id(nil) and it returns nil. When running
this application during testing or through WEBrick or Mongrel calling
User.find_by_id(nil) returns the newest record in the database. But it
only does this the first time you call it with nil. The second time you
call User.find_by_id(nil) it returns nil.
2006 Jun 10
7
Agile Web Development with Rails Page 33
I''m a real Newb; just bought AWDwR and using it with Win2000 - it took me
ages, and only after reading Curt Hibbs Rolling with Ruby, to realise that I
needed to use Cmd.exe before using AWDwR''s dave> instructions.
I''ve created Say/hello.html and I still get "Template is missing" with
http://localhost:3000/say/hello
I''ve read
2006 Jul 13
6
creating meaningful urls, (changing default)
Hi,
Urls in ruby are as defualt set to :controller/:action/:id
How can I change it to somthing like this
:controller/:action/:id/#random title#
#random title# may be a variable or taken from a field in the database
thanks
scott
--
Posted via http://www.ruby-forum.com/.
2006 Apr 28
10
Sharing RJS Templates
Hello All,
I''m enjoying the simplicity and power of RJS templates in Rails 1.1, but am
perplexed about sharing them. I have several templates that I would like to
access in various controllers, but if I moved them to
views/shared/whatever.rjs, my app can''t seem to find them. I changed the
name to _whatever.rjs and referenced them as "shared/whatever", but no
luck.
2006 May 05
11
Rails Recipes or AWDWR 2 ?
Hi,
I bougth the Agile Web Development with rails First Edition and now want
buy rails recipes but what is the best decision buy rails recipes or the new
edition de Agile Web Development With Rails?
Jean Carlo Schechnner
www.idvirtual.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Aug 02
1
Authentication & ACL
Hey,
Would you guys recommend just coding your own authentication and ACL system,
or is it best just to use one of acts_as_authenticated, LoginGenerator and
alike. There''s a good example in Rails Recipies and Agile Web Development
with Rails 2nd Edition that I can base it on also.
What would you suggest.... and why?
-------------- next part --------------
An HTML
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 Jul 13
2
EmacsRails cheat sheet
Hi
I''ve compiled a small cheat sheet for Emacs-Rails. It can be found here:
http://os.ologix.com/emacs-rails-cheat.pdf
--
Ola Bini (http://ola-bini.blogspot.com)
JvYAML, RbYAML, JRuby and Jatha contributor
System Developer, Karolinska Institutet (http://www.ki.se)
OLogix Consulting (http://www.ologix.com)
"Yields falsehood when quined" yields falsehood when quined.
2006 Jan 24
3
Unitialized constant
In Agile Web Development with Rails, I get this error when adding a
product to my cart:
uninitialized constant Cart
...
Application Trace:
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/
active_support/dependencies.rb:200:in `const_missing''
./public/../config/../app/controllers/store_controller.rb:21:in
`find_cart''
2006 Jul 20
2
ROR dev on Different Ruby versions
Hi,
First I would like to ask if someone could give me the direct link to
the mailing list this forum mirrors. This is so I can do searches
directly and not bother folks with repeat questions.
Now my question:
I recently installed a ROR app built on Ruby 1.8.2 and moved it to ROR
on Ruby 1.8.4. I got a few errors and had to regenerate my app in the
later and copy the App files and a few
2006 Apr 07
22
Find WHERE in Rails
I''d like to find all records that have a certain integer as their
"level" field in the database. I know how to find all the records:
allquestions = Question.find(:all)
...and I know how to find the one record that has a certain id:
allquestions = Question.find(params[:id])
...but how do you find all the records that share a certain value in one
of their fields? I tried
2006 Apr 03
7
Getters and setters problem?
Hi list,
first evening of playing with rails, so please forgive me if I ask
something stupid. ;-)
I created a User model and tried to use ActiveRecord callbacks to
convert the password to sha1 just before saving it. For some reason
postgresql gives me a error because the given password is null. To
test even further I tried to change :login too, same error happens,
:login is empty too.
I am sure
2006 Jul 02
2
Fixtures Problem
I''m having a problem configuring fixtures -- for some reason, when I run
my unit test, I''m not getting any of the instance variables that are
advertised in "Agile Web Development with Rails". I''ve gone through
various Wikis and Google, and it seems like I''m the only person with this
problem. There is no error message per se, but when I try to use the
2006 Oct 30
6
Agile Web Development with Rails
Hi,
Anbody having "Agile Web Development with Rails" soft copy please send
me sansflair-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Thanks and Regards,
San
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group,
2006 Aug 09
11
Query Offset Parameter problem
Greetings,
I''m trying to make a simple logging application that just displays the
last few rows of information in the log. In order to do this, I am
trying to use the ":offset" option for find. However, I am not getting
the results I expect.
For testing purposes, the query is being run against a table (MySQL)
that contains 11 records. According to the RoR documentation,
2005 Dec 31
26
Free "Agile Web Development with Rails" Text
Hi All,
I''m a RoR n00b that has been lurking for a week or so. About two weeks
ago I bought the text version of Agile Web Development with Rails.
Today, I bought the .pdf version because I run a Sony Notebook and find
a .pdf more user friendly. Therefore I have the text to give away for
free. If anyone in the continental US would like the copy please let me
know and I''ll mail it