ONLamp article on Rails

Marcel Molina Jr. wrote:

Thanks for the link - what an excellent tutorial -
showed all the good point of Rails - and there will be
a part 2!

Curt Hibbs wrote a an article on rails. It’s over at
onlamp.com:

Radar – O’Reilly

It’s a little bit out of date but it only takes about a day for that to
happen :slight_smile: Very cool regardless. Glad there is a #2 coming up.

Thanks for the kind words!

Please tell me what is out of date. If you’re talking about the fact that I
didn’t use the helper functions for select/option tags, I did that on
purpose. For anything else, I’d really like to know about it.

Also, I like to get this article slash-dotted. Anyone know how to do that?

Thanks,
Curt

···

On Thu, Jan 20, 2005 at 07:22:28PM -0800, john arbour wrote:

Curt Hibbs wrote:

Also, I like to get this article slash-dotted. Anyone know how to do that?

I submitted an article to slashdot with the first paragraph of YOUR article and a link to the URL. It's pending now... let's wait...

luc

Curt Hibbs wrote:

Also, I like to get this article slash-dotted. Anyone know how to do that?

Submit it to slashdot yourself, article authors have more authority...

···

--
"May the source be with you"

Ah, it didn't take long for this beginner to get stuck :wink:

I got as far as creating the recipe_controller.rb and when I opened my browser to "http://127.0.0.1:3000/recipe/new" I got the message "#42000Unknown database 'rails_development'"

My database.yml is exactly as described in the article (i.e. the 3 databases are called "cookbook"), I'm not aware of skipping any of the steps, after triple-checking the whole sequence. I can't even find a file which contains in its contents 'rails_development' in the whole cookbook directory structure.

Googling for this error string didn't turn anything up either.

Any hints anybody? Can I put the framework trace here? Would that help anybody to gently give me a push in the right direction?

luc

The article just got posted to /.

Hooray for Curt!

Curt Hibbs wrote:

Also, I like to get this article slash-dotted. Anyone know how to do that?

I hope you like my thank you message. It will be read by thousands of
users :wink:

Bart (posting on usenet with netscape, on slashdot with gmail)

···

--
"May the source be with you"

Luc Dubois wrote:

Ah, it didn’t take long for this beginner to get stuck :wink:

I got as far as creating the recipe_controller.rb and when I opened my
browser to “http://127.0.0.1:3000/recipe/new” I got the message
#42000Unknown database ‘rails_development’”

My database.yml is exactly as described in the article (i.e. the 3
databases are called “cookbook”), I’m not aware of skipping any of the
steps, after triple-checking the whole sequence. I can’t even find a
file which contains in its contents ‘rails_development’ in the whole
cookbook directory structure.

The database.yml file originally used “rails_development” as the db name
before you changed it to cookbook, but it sounds like rails isn’t seeing
your change. Are your sure your saved the changes? If so, maybe something
has been cached. Try restarting your web server (or machine).

Curt

Luc Dubois wrote:

Curt Hibbs wrote:
>
> Also, I like to get this article slash-dotted. Anyone know how
to do that?
>

I submitted an article to slashdot with the first paragraph of YOUR
article and a link to the URL. It's pending now... let's wait...

Thanks!

Curt

Aquila wrote:

Curt Hibbs wrote:

Also, I like to get this article slash-dotted. Anyone know how to do that?

Submit it to slashdot yourself, article authors have more authority...

I think that is a really good suggestion. It's easy to get an account on /. and submit an article. I checked the faq and nothing is stopping you from submitting this again (and most probably better). There is no penalty or any such thing, on the contrary they even explicitely mention that multiple submission could be the reason why the submission of 1 particular submitter is not published...
Curt, I would go for it if I were you.

Curt Hibbs wrote:

Luc Dubois wrote:

Ah, it didn't take long for this beginner to get stuck :wink:

I got as far as creating the recipe_controller.rb and when I opened my
browser to "http://127.0.0.1:3000/recipe/new" I got the message
"#42000Unknown database 'rails_development'"

My database.yml is exactly as described in the article (i.e. the 3
databases are called "cookbook"), I'm not aware of skipping any of the
steps, after triple-checking the whole sequence. I can't even find a
file which contains in its contents 'rails_development' in the whole
cookbook directory structure.

The database.yml file originally used "rails_development" as the db name
before you changed it to cookbook, but it sounds like rails isn't seeing
your change. Are your sure your saved the changes? If so, maybe something
has been cached. Try restarting your web server (or machine).

Curt

Thanks, Curt, restarting the web server did the trick. I should have
thought about that myself, but being a beginner I was *convinced*
that *I* had made a mistake somewhere...

On to the next step, this is going to be a lot of fun, I feel it, you have a very enthousiastic style of writing, it'll be hard NOT to keep going...

luc

Tim Hunter wrote:

The article just got posted to /.

And I was going to post about tadalist.com in response to how useless Rails is... but tadalist is busted now. :frowning:

Ben

The article just got posted to /.

Hooray for Curt!

Lots of folks are getting Rails via RubyGems:

[tom@rubyforge tom]$ tail -5000 /var/log/httpd/gems-access_log | grep
rails-0.9.4.1 | grep "21/Jan" | wc -l
    168
[tom@rubyforge tom]$

And still increasing...

Yours,

Tom

Luc Dubois wrote:

Aquila wrote:
> Curt Hibbs wrote:
>
>
>>Also, I like to get this article slash-dotted. Anyone know how
to do that?
>
>
> Submit it to slashdot yourself, article authors have more authority...

I think that is a really good suggestion. It's easy to get an account on
/. and submit an article. I checked the faq and nothing is stopping you
from submitting this again (and most probably better). There is no
penalty or any such thing, on the contrary they even explicitely mention
that multiple submission could be the reason why the submission of 1
particular submitter is not published...
Curt, I would go for it if I were you.

Ok, I'll give it a shot.

Curt

Luc Dubois [mailto:dubois@kavi.gr]

On to the next step, this is going to be a lot of fun, I feel it, you
have a very enthousiastic style of writing, it'll be hard NOT to keep
going...

Thanks... the probably one of the best compliments I could get!

Curt

I second that. The prose is fantastic- lean, clean, and enthusiastic.

Nick

···

On Fri, 21 Jan 2005 23:46:04 +0900, Luc Dubois <dubois@kavi.gr> wrote:

Curt Hibbs wrote:
> Luc Dubois wrote:
>
>>Ah, it didn't take long for this beginner to get stuck :wink:
>>
>>I got as far as creating the recipe_controller.rb and when I opened my
>>browser to "http://127.0.0.1:3000/recipe/new&quot; I got the message
>>"#42000Unknown database 'rails_development'"
>>
>>My database.yml is exactly as described in the article (i.e. the 3
>>databases are called "cookbook"), I'm not aware of skipping any of the
>>steps, after triple-checking the whole sequence. I can't even find a
>>file which contains in its contents 'rails_development' in the whole
>>cookbook directory structure.
>
> The database.yml file originally used "rails_development" as the db name
> before you changed it to cookbook, but it sounds like rails isn't seeing
> your change. Are your sure your saved the changes? If so, maybe something
> has been cached. Try restarting your web server (or machine).
>
> Curt
>

Thanks, Curt, restarting the web server did the trick. I should have
thought about that myself, but being a beginner I was *convinced*
that *I* had made a mistake somewhere...

On to the next step, this is going to be a lot of fun, I feel it, you
have a very enthousiastic style of writing, it'll be hard NOT to keep
going...

luc

--
Nicholas Van Weerdenburg

Arg! My project has been scooped! :wink: Looks like I've run out of
reasons to not migrate my rubyforge project the the Rails framework
...

http://rubyforge.org/projects/recipe/

Lots of folks are getting Rails via RubyGems:

[tom@rubyforge tom]$ tail -5000 /var/log/httpd/gems-access_log | grep
rails-0.9.4.1 | grep "21/Jan" | wc -l
    168
[tom@rubyforge tom]$

And still increasing...

Total number of Rail installs via RubyGems yesterday:

[tom@rubyforge tom]$ grep "21/Jan/2005" /var/log/httpd/gems-access_log

grep -c rails-0.9.4.1

935
[tom@rubyforge tom]$

935, whew!

Yours,

Tom

···

On Fri, 2005-01-21 at 13:17, Tom Copeland wrote:

Yes, Curt, and if your ego isn't just completely inflated at this
point, I'll throw in my two cents too. This is a really well-written
tutorial (which I'm working through as we speak) and it's a great
addition to the growing body of quality Rails (and Ruby)
documentation.

···

On Fri, 21 Jan 2005 23:56:26 +0900, Curt Hibbs <curt@hibbs.com> wrote:

Thanks... the probably one of the best compliments I could get!

What I find equally exciting is the number of Ruby downloads of even
just the Win32 One Click Installer:

http://rubyforge.org/project/stats/?group_id=167

Up more than 3x from the previous day.

···

On Sun, 23 Jan 2005 01:26:53 +0900, Tom Copeland <tom@infoether.com> wrote:

On Fri, 2005-01-21 at 13:17, Tom Copeland wrote:
> Lots of folks are getting Rails via RubyGems:
>
> [tom@rubyforge tom]$ tail -5000 /var/log/httpd/gems-access_log | grep
> rails-0.9.4.1 | grep "21/Jan" | wc -l
> 168
> [tom@rubyforge tom]$
>
> And still increasing...

Total number of Rail installs via RubyGems yesterday:

[tom@rubyforge tom]$ grep "21/Jan/2005" /var/log/httpd/gems-access_log
> grep -c rails-0.9.4.1
935
[tom@rubyforge tom]$

935, whew!

Yours,

Tom

Lyle Johnson wrote:

> Thanks... the probably one of the best compliments I could get!

Yes, Curt, and if your ego isn't just completely inflated at this
point, I'll throw in my two cents too. This is a really well-written
tutorial (which I'm working through as we speak) and it's a great
addition to the growing body of quality Rails (and Ruby)
documentation.

I appreciate your two cents!

Anyway, if my ego was getting to inflated, this comment on /. would be sure
to ground me:

http://developers.slashdot.org/comments.pl?sid=136825&threshold=-1&commentso
rt=0&tid=156&mode=thread&pid=11433216#11433280

Curt

···

On Fri, 21 Jan 2005 23:56:26 +0900, Curt Hibbs <curt@hibbs.com> wrote: