[Rails] Closes tomorrow! 2018 Ruby on Rails developer community survey

2018-03-30 Thread 'Robby Russell' via Ruby on Rails: Talk
Hi all --

Since 2009, we've been conducting surveys and sharing all the results (in 
the spirit of open source!) with the community every 2-3 years. Our current 
survey has been open all month and closes tomorrow. We're aiming to share 
the results in the next few weeks -- if you have not taken it, yet, please 
do take a few minutes and hop over to:


   - http://rails-hosting.com/

Thanks in advance!

Cheers,
Robby


—
Robby Russell 
VP Engineering, Principal  
Planet Argon, LLC
+1 503 847 9214 x701
https://www.planetargon.com/robby

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/09b47f83-24fa-413c-9b6f-3e695d84f9c5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Rails] Take the 2018 Ruby on Rails developer survey

2018-03-06 Thread 'Robby Russell' via Ruby on Rails: Talk
Hi all,

Every few years, we conduct a survey and share all the results with the 
Ruby on Rails community. If you have a few minutes...please pop over 
to http://rails-hosting.com/ and take the 2018 survey. 

Thanks in advance!

Cheers,
Robby

—
Robby Russell 
VP Engineering, Principal  
Planet Argon, LLC
+1 503 847 9214 x701
https://www.planetargon.com/robby

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/fbe06189-1186-41f7-be4a-37a0a0cf2459%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Rails] Re: Survey: 2016 Rails hosting community survey

2016-05-02 Thread 'Robby Russell' via Ruby on Rails: Talk
Happy Monday!

The Rails hosting survey closes in under a week. Please take a few minutes 
to share with the community:

* http://rails-hosting.com/

Cheers,
Robby

On Tuesday, April 12, 2016 at 10:32:26 AM UTC-7, Robby Russell wrote:
>
> Hi everyone! 
>
> Hope you're having an awesome day.
>
> As you might have seen DHH tweeted recently 
> <https://twitter.com/dhh/status/715852121355259904>, the 2016 Ruby on 
> Rails Hosting survey <http://rails-hosting.com/> is now open until May 
> 8th.
>
> Background: 
>
> In 2009, we invited the community to participate in a survey about the 
> state of hosting Ruby on Rails applications. At the time, we wanted to get 
> a better understanding of how people were managing their deployment and 
> hosting processes. Over the past seven years, we’ve evolved the survey to 
> include questions about tools, frameworks, and workflows in order to see 
> how the landscape has changed.
>
> We invite you to participate, spread the word, and view the results!
>
> If you have 4-5 minutes, please complete the survey before May 8th at:
>
>- http://rails-hosting.com/
>
> Thanks in advance!
>
> Cheers,
> Robby
>
> —
> Robby Russell
> Managing Partner | Planet Argon (and creator of @ohmyzsh)
> +1 800 604 0375 x701
> http://planetargon.com/robby
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/9274c7f1-11c3-4af1-82bb-398a9d19c51b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Rails] Survey: 2016 Rails hosting community survey

2016-04-12 Thread &#x27;Robby Russell' via Ruby on Rails: Talk
Hi everyone! 

Hope you're having an awesome day.

As you might have seen DHH tweeted recently 
<https://twitter.com/dhh/status/715852121355259904>, the 2016 Ruby on Rails 
Hosting survey <http://rails-hosting.com/> is now open until May 8th.

Background: 

In 2009, we invited the community to participate in a survey about the 
state of hosting Ruby on Rails applications. At the time, we wanted to get 
a better understanding of how people were managing their deployment and 
hosting processes. Over the past seven years, we’ve evolved the survey to 
include questions about tools, frameworks, and workflows in order to see 
how the landscape has changed.

We invite you to participate, spread the word, and view the results!

If you have 4-5 minutes, please complete the survey before May 8th at:

   - http://rails-hosting.com/

Thanks in advance!

Cheers,
Robby

—
Robby Russell
Managing Partner | Planet Argon (and creator of @ohmyzsh)
+1 800 604 0375 x701
http://planetargon.com/robby

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/80c359c3-02fa-4593-b4e3-2b2cb05051d2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Rails] Re: Which Company is Best on Ruby on Rails Development in India?

2016-03-03 Thread Robby Russell
Might I suggest that you get in touch with my company? We've been in the 
Ruby on Rails community since late 2004. We're not the cheapest company. 
We're one of the most experienced.

http://www.planetargon.com/

Based in Portland, Oregon USA.

—
Robby Russell
Managing Partner | Planet Argon
+1 800 604 0375 x701
http://planetargon.com/robby

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/824d0ebca4e06af639794127828ab123%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.


[Rails] Survey: How do you deploy and host your Rails app?

2014-04-27 Thread Robby Russell
Hey there, do you have 3-5 minutes? If so... please take the 2014 edition 
of the Ruby on Rails hosting survey.

http://rails-hosting.com/

We'll stop collecting submissions on April 30th... so share your story 
before then.

Thanks!

Cheers,
Robby

—
Robby Russell
Partner | Planet Argon
http://planetargon.com/robby

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/77c706a3-e33a-4781-b460-77899c2488fe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Rails] Take the 2014 Rails Hosting Survey

2014-03-30 Thread Robby Russell
Hello everyone!

In case you missed DHH's 
tweet<https://twitter.com/rails/status/449891895142277120>( 
https://twitter.com/rails/status/449891895142277120 ) the other day, our 
team just opened up the 2014 Rails Hosting Survey <http://rails-hosting.com>
. 

If you have 5 minutes to spare, can you share how you're deploying and 
hosting your Rails applications with the rest of the community?

You can take the survey at: http://rails-hosting.com/

Thanks in advance,
Robby

P.S. We will be collecting responses until April 30th, 2014. 

—
Robby Russell
Partner | Planet Argon
http://planetargon.com/robby

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/991a407a-3145-4d78-9e09-90c86ede0713%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Rails] Results from the 2012 Rails Hosting Survey

2012-08-16 Thread Robby Russell
Hey everyone!

Thanks again for filling out our survey in June. We've just released all 
the results to the public and put together an 
infographic<https://planetargon-blog.s3.amazonaws.com/images/infographic-2012-survey.png>for
 you. 

You can read more about it here:

   - 
   
http://blog.planetargon.com/entries/2012/8/14/rails-hosting-survey-2012-results-are-in

Enjoy!

Robby

-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
Web Design and Development with Ruby on Rails

http://planetargon.com/

+1 408 372 7466
+1 815 642 4068 [fax]

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msg/rubyonrails-talk/-/Wn0ZcTB2qeoJ.
For more options, visit https://groups.google.com/groups/opt_out.




[Rails] How are you hosting your Rails application?

2012-06-28 Thread Robby Russell
Hello all,

Just a quick note to let you know that we're nearly finished collecting 
responses to our 2012 Ruby on Rails Hosting Survey and wanted to invite you 
to participate before submissions close at the EOD June 30th.

* https://twitter.com/rails/status/216210687775608834

You can take the quick survey at: http://rails-hosting.com/

Thanks in advance!

Cheers,
Robby

-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
Web Design and Development with Ruby on Rails

http://planetargon.com/

+1 408 372 7466
+1 815 642 4068 [fax]

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/rubyonrails-talk/-/DBLVBTbMLeoJ.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en-US.



[Rails] Take the 2012 Rails Hosting Survey

2012-06-07 Thread Robby Russell
Hello all!

Back in 2009, our team conducted a survey to learn more about how
people were managing their production deployments for Rails
applications. We had 1251 developer take the survey.. and then shared
all the results with the community. It's been over three years and a
lot has changed (at least we think it has)... so we're doing it again
and will... yes, share the results once we close the survey at the end
of June.

If you have a few minutes, please take the survey at:

* http://rails-hosting.com/

You can find the 2009 results here as well.

Cheers,
Robby

--
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
Web Design and Development with Ruby on Rails

http://planetargon.com/

+1 408 372 7466
+1 815 642 4068 [fax]

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.



Re: [Rails] Re: [ANN] RailsDeveloper.com is live!

2010-09-01 Thread Robby Russell
On Wed, Sep 1, 2010 at 7:13 AM, Marnen Laibow-Koser wrote:

> Peter Hickman wrote:
> > Sorry but you blew it at "Rails Developer aims to leverage the
> > mindshare ". *LEVERAGE*, *MINDSHARE*. WTF are you talking about?
> >
> > This is a community of programmers not suits, weasel speak is not
> > looked upon favourably. In fact I have now spent more time writing
> > this email than reading your site.
> >
> > First impressions and understanding your market (or 'community' as you
> > call it) are important and for me you blew it.
>
> Yeah, I know what you mean here, Peter.  The wording doesn't bother me
> as much; I just don't see what Rails Developer offers that this list,
> WorkingWithRails.com, or Ohloh don't.
>

Marnen,

I'm not too familiar with Ohloh (will have to look it over) but with regard
to WWR, it seems pretty obvious that the site isn't being actively
maintained anymore.

* http://weblog.workingwithrails.com/
* http://www.workingwithrails.com/forums/2-working-with-rails-website

It's unfortunate because it had potential (and possibly still does).  I know
that the original developer behind it was extremely sharp and motivated, but
think he's with another company now (that doesn't own WWR). I'm sure there
are many reasons that lead towards this and we started out with a different
set of goals, which we outlined a bit here:

* http://railsdeveloper.com/blog/2010/8/31/we-are-railsdeveloper

We hope you get a chance to give it a whirl. :-)

Cheers,
Robby

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.



Re: [Rails] [ANN] RailsDeveloper.com is live!

2010-09-01 Thread Robby Russell
On Wed, Sep 1, 2010 at 7:07 AM, Peter Hickman <
peterhickman...@googlemail.com> wrote:

> Sorry but you blew it at "Rails Developer aims to leverage the
> mindshare ". *LEVERAGE*, *MINDSHARE*. WTF are you talking about?
>
> This is a community of programmers not suits, weasel speak is not
> looked upon favourably. In fact I have now spent more time writing
> this email than reading your site.
>
> First impressions and understanding your market (or 'community' as you
> call it) are important and for me you blew it.
>
> Bye :)
>
>
>From the bottom of my heart, thanks for pointing out how much I sounded like
a weasel.

I really should learn to remove "leverage" from my vocabulary when speaking
with developers. Perhaps I spend too much time talking with clients these
days... ;-)

Thanks again for the feedback. I hope you'll forgive me and review the site
in more depth... when the time is right.

Cheers,
Robby

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.



[Rails] [ANN] RailsDeveloper.com is live!

2010-09-01 Thread Robby Russell
Hello all,

I'll make this quick because I know you're all busy.

I just wanted to invite you to check out a new tool that we've just launched
for the Ruby on Rails community. We fully expect that it'll be a nice
compliment to our already vibrant community. You can learn more at
http://railsdeveloper.com.  Have fun!

Cheers,
Robby

-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
Web Design and Development with Ruby on Rails

http://planetargon.com/

+1 408 372 7466
+1 815 642 4068 [fax]

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.



Re: [Rails] Re: Use of :include option in find query

2010-08-10 Thread Robby Russell
The queries will likely be the same.. but you should check to see if
it loaded the company details _before_ you called @user.company.

You might try the following from script/console while tailing the log
file in another terminal.

ruby script/console
=>  User.find(2)

... check the log/development.log

=> User.find(2, :include => :company)

 check log/development.log

Good luck!

Cheers,
Robby



On Tue, Aug 10, 2010 at 10:21 PM, Mike Disuza  wrote:
> Hi I have written code like this
>
> 1) Without :include
> My code is :-
> def user_details
>   �...@user=user.find(params[:id])
>   �...@company=@user.company
> end
> Log Output:-
>
> Processing UsersController#user_details (for 127.0.0.1 at 2010-08-11
> 10:51:34) [GET]
>  Parameters: {"id"=>"2"}
>  User Columns (1.0ms)   SHOW FIELDS FROM `users`
>  User Load (0.4ms)   SELECT * FROM `users` WHERE (`users`.`id` = 2)
>  Company Load (0.4ms)   SELECT * FROM `companies` WHERE
> (`companies`.user_id = 2) LIMIT 1
> Rendering template within layouts/users
> Rendering users/user_details
> Completed in 65ms (View: 48, DB: 2) | 200 OK
> [http://localhost/user_xml?id=2]
>
> 2) With Include:-
>  def user_details
>   �...@user=user.find(params[:id], :include=>:company)
>   �...@company=@user.company
> end
> Log Output:-
> Processing UsersController#user_details (for 127.0.0.1 at 2010-08-11
> 10:53:13) [GET]
>  Parameters: {"id"=>"2"}
>  User Columns (1.2ms)   SHOW FIELDS FROM `users`
>  User Load (0.5ms)   SELECT * FROM `users` WHERE (`users`.`id` = 2)
>  Company Load (0.3ms)   SELECT * FROM `companies` WHERE
> (`companies`.user_id = 2) LIMIT 1
> Rendering template within layouts/users
> Rendering users/user_details
> Completed in 13ms (View: 2, DB: 2) | 200 OK
> [http://localhost/user_xml?id=2]
>
> If you look at the both o/p there is a query on company table in both
> the cases.
>
> What is the difference?
>
> Thanks,
> Mike
> --
> 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, send email to rubyonrails-t...@googlegroups.com.
> To unsubscribe from this group, send email to 
> rubyonrails-talk+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.



Re: [Rails] Faking an ActiveRecord Model

2010-08-10 Thread Robby Russell
On Tue, Aug 10, 2010 at 8:51 AM, Joao Silva  wrote:
> I want to fake an ActiveRecord model like so... instead of having a Plan
> table in my database, I'd like to just have a variable somewhere
> (shallow example):
>
>  Plans = [{ :id => 1, :price => 9.99,
>           { :id => 2, :price => 14.99,
>           { :id => 3, :price => 19.99 }]
>
> And then I guess I'd still like to be able to associate this with my
> User model... so User.plan[:price] brings up 9.99 or whatever. User
> belongs_to :plan, so the User would have a plan_id column?
>
> Any tips? Rails 3.
>

I hate to ask the obvious question here... but why not just have a
regular model with a table behind it? What problem are you solving
here? What problems are you introducing? Just want to make sure you're
factoring the tradeoffs here...

Cheers,
Robby

-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
Web Design and Development with Ruby on Rails

http://planetargon.com/

+1 408 372 7466
+1 815 642 4068 [fax]

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.



Re: [Rails] OT - RoR Site Launch

2010-02-16 Thread Robby Russell
Is this spam? I'm baffled...  is this a place to find and schedule
appointments or a place to try and find masseuses?



On Mon, Feb 15, 2010 at 9:31 PM, Craig White  wrote:

> OK - but it is built entirely on Ruby on Rails and with some very
> valuable help from this list...
>
> http://www.allasianmassage.com
>
> (a little rushed but seems to be pretty stable and pretty well
> debugged... no money/time for TDD)
>
> uses:
> (gems)
> calendar_date_select
> geoip_city
> geokit
> paperclip
> sanitize
> will_paginate
>
> (plugins)
> active_record_tableless
> authlogic
> auto_complete
> geokit-rails
> ym4r_gm
>
> (yes, a lot of geo as soon as you reach the site)
>
> Linode VPS host (seems to be a very good provider and actually didn't
> have to ask them a single question)
>
> Please kick the tires
>
> Craig
>
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To post to this group, send email to rubyonrails-t...@googlegroups.com.
> To unsubscribe from this group, send email to
> rubyonrails-talk+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

<>

Re: [Rails] Corkd.com Application?

2009-12-28 Thread Robby Russell
Get in touch with the owner...  http://twitter.com/garyvee



On Mon, Dec 28, 2009 at 12:50 PM, Heartlander
 wrote:
> Can anyone tell my anything about the application of ROR at Corkd.com?
> I'm especially interested in the live feed of reviews and such, and
> the rating system.
> I have an unrelated niche that might benefit from something like this.
> Thanks!
>
> --
>
> You received this message because you are subscribed to the Google Groups 
> "Ruby on Rails: Talk" group.
> To post to this group, send email to rubyonrails-t...@googlegroups.com.
> To unsubscribe from this group, send email to 
> rubyonrails-talk+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>
>



-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
Web Design and Development with Ruby on Rails

http://planetargon.com/

+1 408 372 7466
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--

You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.




Re: [Rails] "Best practice" for accessing session from model

2009-12-20 Thread Robby Russell
On Sun, Dec 20, 2009 at 5:33 PM, Lin Wj  wrote:
> i need to do update pm a "updated_by" field with a session variable
> "user" on a model after_save.
>
> but accessing session variables from models is supposedly bad

ActiveRecord shouldn't know anything about the controller/view
environment... it only knows how to deal with information that has
been passed to it.

>
> whats the usual best practice for this kinda scenario ?

So the best option is to pass the data to ActiveRecord. There are a
number of ways that you could do this. You could do this through your
users model. You might look at Userstamp for inspiration:

* http://github.com/delynn/userstamp

Best of luck!

Cheers,
Robby

-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
Web Design and Development with Ruby on Rails

http://planetargon.com/

+1 408 372 7466
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--

You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.




[Rails] Re: Should I use Passenger for development?

2009-08-31 Thread Robby Russell

+1 Passenger for development I wrote a blog post about this a while back.

* 
http://www.robbyonrails.com/articles/2009/02/11/switch-to-passenger-mod_rails-in-development-on-osx-in-less-than-7-minutes-or-your-money-back

Good luck!

Robby

On Sun, Aug 30, 2009 at 10:58 AM, comopasta
Gr wrote:
>
> Hi,
>
> I will deploy my sites with Passenger.
> I develop on windows with Instantrails so I should now use vmware if I
> want to have passenger also used during development. But is it really
> needed? Does it make much difference if I use Passenger or not for the
> development environment?
>
> Thanks.
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>



-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://planetargon.com/
http://robbyonrails.com/
http://twitter.com/planetargon
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: rails 3.0

2009-08-26 Thread Robby Russell

Just google for torrents.




On Wed, Aug 26, 2009 at 12:03 PM, RORock wrote:
>
> can some tell me where i can find rails 3.0 ebooks for free?
>
> Thanks
> MNT
>
> >
>



-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://planetargon.com/
http://robbyonrails.com/
http://twitter.com/planetargon
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: railslist.com - an opensource craigslist!

2009-08-17 Thread Robby Russell
I'm curious to know what the motivation behind this was. Makes a good
proof-of-concept, perhaps you're a student?
Otherwise, I don't see any business value in cloning what Craigslist already
does. If I'm going to post an ad, I'll use Craigslist and suspect most
people would. Posting an ad on a clone site doesn't seem worthwhile...

Robby

On Sat, Aug 15, 2009 at 1:44 PM, Rails List <
rails-mailing-l...@andreas-s.net> wrote:

>
> Today, I have successfully launched  href="http://www.railslist.com";>railslist.com, an open source
> craiglist style classifieds script.
>
> It is named as such to reflect the fact that it has been developed using
> rails.
>
> It will be released to open source community today.
>
> In the meantime, i would appreciate if you could take time to have a
> look, play around and let me know any issues.
>
> This is a beta release and we will be releasing patches based on your
> feedback.
>
> More features will be added as and when the community responds with
> their requirements.
>
> This is my very first open source release, so please feel free to
> suggest me with your tips.
>
> Regards
>
> www.railslist.com
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>


-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://planetargon.com/
http://robbyonrails.com/
http://twitter.com/planetargon
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: Difference Between ROR and Django...

2009-08-17 Thread Robby Russell

Since you're on a Rails list... I'll keep this short.

Django is the best solution (if you like snakes).

Ruby on Rails is the best solution (if you like Trains).

If you like snakes AND trains... well, you're going to have to
evaluate the pros/cons with a different set of metrics.

Robby... who likes trains.

On Mon, Aug 17, 2009 at 5:13 AM, Ram Kumar.K wrote:
>
> Hi I am the newbie to both Django as well as ROR Which one i have
> to choose as my carrier one And what is the main difference
> Djkango in Python & It is in Ruby..
> which one is best to easy learn and about security
> Thank you...
> --
> WithRegards...
> K.Ramkumar
> Blog at http://fallinlinux.wordpress.com/
> contact : 97915 89522
>
> >
>



-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://planetargon.com/
http://robbyonrails.com/
http://twitter.com/planetargon
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: different titles

2009-08-13 Thread Robby Russell

Hi there,

Taking this a little step further, this is the pattern that our team
has been using.

http://www.robbyonrails.com/articles/2008/03/26/managing-seo-friendly-html-titles-with-rails

Good luck!

Robby

On Wed, Aug 12, 2009 at 7:06 AM, Philip
Gavrilos wrote:
>
> Philip Gavrilos wrote:
>>
>> hi!
>>
>> I want to have different titles in my weblog.
>>
>> in my app/views/layout/post.html.erb
>>
>> i have this in head:  <%= controller.action_name %> :: webstic
>> blog :)
>>
>> thats fine if im in page that listing my blog articles!
>>
>> but if i chooce to view a page i want the title.post  in my 
>>
>> how i can do that?
>>
>> thanks
>>
>> philip.g
>
>
> i found it!  sorry for the rush post!
>
> i could help im writing what i've did:
>
>
> in my  app/views/layout/posts.html.erb
>
> <%= yield :title %>:: my fisrt rails blog :)
>
>
> in my app/views/posts/index.html.erb
>
> <% content_for :title do %>
>  <%= controller.action_name %>
> <% end %>
>
> and my _post partial
>
> <% content_for :title do %>
>  <%= post.title %>
> <% end %>
>
>
> this works for me :)
>
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>



-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://planetargon.com/
http://robbyonrails.com/
http://twitter.com/planetargon
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: Why can't I run a Rake task inside my migration?

2009-08-10 Thread Robby Russell

By chance are you attempting to add a new table for a new model? (and
then trying to add some data to populate it?)

Robby

On Mon, Aug 10, 2009 at 11:21 AM, John
Small wrote:
>
> Robby Russell wrote:
>>>..When you're running a migration, you are running a rake
>> task.
>>
>
> Which is exactly why I'm so puzzled. The postgres adapter gets a problem
> when trying to get the data structure for a table, it fails on this
> query
>
>  SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc,
> a.attnotnull
>              FROM pg_attribute a LEFT JOIN pg_attrdef d
>                ON a.attrelid = d.adrelid AND a.attnum = d.adnum
>             WHERE a.attrelid = 'territories'::regclass
>               AND a.attnum > 0 AND NOT a.attisdropped
>             ORDER BY a.attnum
>
> Which isn't going to tell you very much.
>
> I've got no time to dig down into the depths of the postresql adapter
> and I can work with the problem by running the rake task outside of a
> migration. I was just hoping to be able to package everything up inside
> a single call to rake db:migrate, obviously not.
>
> Ta
>
> John Small
>
>
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>



-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://planetargon.com/
http://robbyonrails.com/
http://twitter.com/planetargon
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: Why can't I run a Rake task inside my migration?

2009-08-10 Thread Robby Russell

What error is coming back from the database? How are you executing the
rake task? When you're running a migration, you are running a rake
task.

Robby

On Mon, Aug 10, 2009 at 7:00 AM, John
Small wrote:
>
> I have a Rake task which I've developed as part of a set of data
> migrations. The task has to be run after a particular migration has run.
> The migration changes the table structure and then the Rake task comes
> in and plays with the data.
>
> So the obvious thing is to invoke the Rake task at the end of the table
> structure changes in the migration. But if I do that then I get an error
> coming back from the database. It's an error from Postgresql, but I
> don't get the error if I run the Rake task from the command line. Is
> there something that's going on inside the migration which might change
> the way a Rake task would work. The only thing I can see is that in a
> migration it's inside a transaction, but I can't see why that would give
> me an error.
>
> Thanks
>
> John Small
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>



-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://planetargon.com/
http://robbyonrails.com/
http://twitter.com/planetargon
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: A weird database association

2009-08-07 Thread Robby Russell

Jason,

Start here:

* 
http://api.rubyonrails.org/classes/ActiveRecord/Associations/ClassMethods.html#M001836

Robby

On Fri, Aug 7, 2009 at 3:06 PM, Jason
Burgett wrote:
>
> I'm trying to figure out a way to create this relationship:
>
> a user has many friends which are themselves users
>
> I have an existing 'users' table in the database. I've created a
> 'friends' database with:
>
> id: integer
> user_id: integer
> friend_id: ineteger
>
> I would like to create relationship so I could do something like:
>
> friends_array = user.friends
>
> where friends_array would be an array of 'user' objects.
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>



-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://planetargon.com/
http://robbyonrails.com/
http://twitter.com/planetargon
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: Best Practices Question

2009-08-07 Thread Robby Russell

In almost every case that I've crossed this bridge, I've moved this
logic down into models. I

On Thu, Aug 6, 2009 at 7:43 AM, TomRossi7 wrote:
>
> Should models call action mailers, or should those calls always
> originate from controllers?  For example, should user.forgot_password
> send the email, or should the user_controller.forgot_password?
>
> Just looking for some opinions...
>
> Thanks,
> Tom
> >
>



-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://planetargon.com/
http://robbyonrails.com/
http://twitter.com/planetargon
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: Rails Database Query

2009-08-03 Thread Robby Russell

Something along the lines of...

Trail.find(:all, :include => [:trailreports], :order =>
['trailreports.created_at DESC'])




On Mon, Aug 3, 2009 at 12:57 PM, Nick wrote:
>
> Hi,
>
> I'm having trouble creating the right code to query the following:
>
> - I have a table of "trails" and a table of "trailreports"
> - "trails" has a "hasmany" relationship with "trailreports"
> - "trailreports" has a field "trail_id", "report" and "created_at"
> field.
>
> I would like to query the list of "trails" that have the most resent
> "trailreports" based on the "created_at" field which is a timestamp.
>
> How do I got about this ?
>
> Thank You,
>
> Nick,
> >
>



-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://planetargon.com/
http://robbyonrails.com/
http://twitter.com/planetargon
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: after matching a regexp, how can I modify the pre-match string?

2009-07-26 Thread Robby Russell

Can you elaborate on your goal? Taking "xxxy"... what do you want the
string to look like?

Robby

On Mon, Jul 27, 2009 at 6:42 AM, Nik wrote:
>
> Hello All!
>
> I have a string:
> str = "xxxy"
>
> and a regular expression:
> re=/y/
>
> I know that if I do a gsub!, the variable that gets passed into the
> block acts as the matched string in str; and I can do something to
> this matched string; so:
> str.gsub!(re){|s|
>  s.upcase
> }
> #=> "xxxY"
>
> But what can I do to be able to manipulate the pre-match? is it the
> $`? I tried
> str.gsub!(re){|s|
> $`.upcase
> }
> It wouldn't work.
>
> Thank you for your help!
>
> >
>



-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://planetargon.com/
http://robbyonrails.com/
http://twitter.com/planetargon
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: running a unit test over and over in script/console

2009-07-15 Thread Robby Russell

You should look into using autotest for this.

http://ph7spot.com/articles/getting_started_with_autotest

On Wed, Jul 8, 2009 at 11:59 AM, Andrew
Arrow wrote:
>
> I started doing this:
>
> $ RAILS_ENV=test script/console
>
>>> load 'test/unit/models/example_test.rb'; r = Test::Unit::TestResult.new; 
>>> reload!; ExampleTest.new(:test_example1).run(r) { |c,v| }; pp results
>
> and then just hit up arrow and run that same line again over and over in
> script/console.  That way I can make changes to the test and app code,
> and don't have to wait for rails startup each time.
>
> Does that make sense to others?  I'm a missing something that will make
> this a bad way to run a test?
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>



-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://planetargon.com/
http://robbyonrails.com/
http://twitter.com/planetargon
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: Determine if a time is within certain hours of the day

2009-06-27 Thread Robby Russell

current_time = Time.now

(current_time.hour >= 17) and (current_time.hour <= 21)

=> true


On Sat, Jun 27, 2009 at 5:30 PM, Jason
Burgett wrote:
>
> I have a Time object
>
> t = Time.now
>
> t
>
> Sat Jun 27 19:17:59 -0500 2009
>
> Now I'm stuck trying to figure out an easy way to determine if "t" is
> between two times. For example, is "t" between 5:00 PM and 9:00 PM.
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>



-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://planetargon.com/
http://robbyonrails.com/
http://twitter.com/planetargon
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: Intro to Behaviour-Driven Development (BDD) with Cucumber - http://bit.ly/ZX6TX

2009-06-23 Thread Robby Russell

What happened to asking people to subscribe to RSS feeds?

http://skitch.com/robbyrussell/bie2d/google-groups

Don't get me wrong, I enjoy the content... but not sure why blog posts
are getting auto-posted on a mailing list.

Robby

On Tue, Jun 23, 2009 at 4:23 PM, sbinsider wrote:
>
> Cucumber is a framework for writing and executing high-level
> descriptions of your software’s functionality. Cucumber plays a
> central role in a development approach called Behaviour Driven
> Development (BDD). BDD in its grandest sense is about communication
> and viewing your software as a system with behaviour. BDD tools such
> as RSpec and Cucumber enable you to describe the behavior of your
> software in a very understandable way. Read the full post at --
> http://bit.ly/ZX6TX
> >
>



-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://planetargon.com/
http://robbyonrails.com/
http://twitter.com/planetargon
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: Rails Hosting: Can't make up my mind

2009-06-23 Thread Robby Russell

You might also get in touch with us as well.

* http://railsboxcar.com


On Tue, Jun 23, 2009 at 7:36 AM, Ben
Vishny wrote:
>
> I've been irresolute about who to choose for hosting for the past few
> days. Right now my two favorites are Rails Playground and Blue Box
> Group. Anyone have any advice or experience with them?
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>



-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://planetargon.com/
http://robbyonrails.com/
http://twitter.com/planetargon
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: modules location

2009-06-12 Thread Robby Russell

If it's per-project... toss them in lib/

Robby

On Fri, Jun 12, 2009 at 10:08 AM, JannaB wrote:
>
> What dir do you typically put modules into your rails apps?
> >
>



-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://planetargon.com/
http://robbyonrails.com/
http://twitter.com/planetargon
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: Rails Hosting Questions

2009-06-09 Thread Robby Russell

On Tue, Jun 9, 2009 at 8:33 PM, Älphä
Blüë wrote:
>
> My research list for VPS sites will be:
>
> Slicehost
> Railsboxcar
> Linode
> Hostingrails
>
> Anyone have others that are rails-centric and support VPS for ubuntu?
>

We're Debian-based (Etch).

* http://railsboxcar.com/

Get in touch with us...

Robby


-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://planetargon.com/
http://robbyonrails.com/
http://twitter.com/planetargon
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: Rails Hosting Questions

2009-06-08 Thread Robby Russell

J.D.,

You might check us out at http://railsboxcar.com/.

One of our guys just did a short screencast showing off our deployment process.

* http://screencast.com/t/9UoB8oYy

Cheers,
Robby


On Mon, Jun 8, 2009 at 2:38 PM, J. D. wrote:
>
> Update:
>
> I did find one review site which is pretty solid:
>
> http://www.webhostingjury.com/
>
> It actually listed my current provider #5 which is good but I can
> definitely confirm that hostgator does not ruby on rails in their
> mindset...
>
> I'm currently talking to Lunarpages to see what type of VPS plans they
> have since they are listed #1 on the list.  Since I'm going to go down
> the top 3 or 4 I'll just provide updates on what I find out to save
> someone else some time if they happen to read this.
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>



-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://planetargon.com/
http://robbyonrails.com/
http://twitter.com/planetargon
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: Best way to find a ruby on rails company?

2009-06-06 Thread Robby Russell

Google searches?

On Sat, Jun 6, 2009 at 8:16 AM, Milan
Dobrota wrote:
>
> What is the best way to find a ruby on rails company if you have some
> extra work? I know about workingwithrails.com. Is there any other good
> place?
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>



-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://planetargon.com/
http://robbyonrails.com/
http://twitter.com/planetargon
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: How do make the page refresh into the same position of the page previously?

2009-06-04 Thread Robby Russell

An html link anchor?



then you just need to reload the page at /x.html#where-i-want-to-jump-down-to

Cheers,
Robby

On Thu, Jun 4, 2009 at 11:46 AM, suki wrote:
>
> I often have to save, delete, or update records. That could be a very
> long list, or multi pages. How can I come back to the same position I
> was before the page refresh?
>
> Thank you very much!
>
> suki
> >
>



-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://planetargon.com/
http://robbyonrails.com/
http://twitter.com/planetargon
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: Running jQuery and prototype scripts together

2009-05-25 Thread Robby Russell

You'll need to execute this after you load the jQuery file..

 jQuery.noConflict();

Robby

On Mon, May 25, 2009 at 11:06 AM, lyntaff  wrote:
>
> Hi
>
> I have a rails appplication that uses jquery and prototype for
> different features.
>
> When adding the jquery library it seems all features in the
> application that uses prototype stop working.
>
> Should this happen? and if this is the case, how can I solve this?
>
> Many Thanks in advance.
> >
>



-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://planetargon.com/
http://robbyonrails.com/
http://twitter.com/planetargon
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: default values for new table entry

2009-04-26 Thread Robby Russell

You can do this in the controller, but I'd advise against this.

Why? Business logic is best located and/or managed by the model. The
easiest way to do this would be to modify the database column to set a
default value, which Active Record will read when it looks at the
table structure and use this to set default values.

For example, if you had a migration for a new field, you could do the following:

add_column :teams, :active, :boolean, :default => false

If we had a Team model, when we did Team.new, we'd see that there
would be a default value already set for the active attribute.

As mentioned, this would be the simplest method and would keep the
business logic located in the realm of the model. Keep controller code
short and sweet.

Hope this helps!

Cheers,
Robby


On Wed, Apr 22, 2009 at 8:09 PM, Franco Catena  wrote:
>
> You can do this in the controller:
>
> @foo = Foo.new(:parameter_name => true)
>
> And then this in the view:
>
> form_for(@foo) do |f|
>
> f.check_box :parameter_name
>
> Regards.
>
> Franco Catena.
>
> On Apr 22, 5:24 pm, big poppa  wrote:
>> All,
>>
>> I would like a new record that is created with the new.html.erb page
>> to always populate a specific variable with a default value.
>>
>> The simplest way would be to have a check_box that defaults to checked
>> when the page is loaded, but this seems to be tricky.
>>
>> Current code looks something like
>> form_for(@foo) do |f|
>> ...
>> check_box(:f, :this_should_always_be_yes_from_this_form, {}, 1, 0)
>>
>> 1. Can I set this value automatically?
>> 2. Can I get the check box to default to "yes"?
>>
>> Thanks,
>> Ben
> >
>



-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://planetargon.com/
http://robbyonrails.com/
http://twitter.com/planetargon
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: Ruby + Postgres = Bad Idea or Good Idea?

2009-04-17 Thread Robby Russell
PostgreSQL +1


On Fri, Apr 17, 2009 at 11:02 AM, Fidel Viegas wrote:

>
> On Fri, Apr 17, 2009 at 6:59 PM, Gary Doades  wrote:
>
> > My own opinion (no flame wars!) and I know also the opinions of many
> > others is that postgres is a superior database in almost every respect,
> > particularly the later (8.2+) versions.
> >
> > In every scenario I have, postgres has outperformed and remained much
> > more stable on any meaningful sized databases (1GB to 100GB).
> >
>
> Shouldn't agree more.
>
> Fidel.
>
> >
>


-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://planetargon.com/
http://robbyonrails.com/
http://twitter.com/planetargon
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: Revision: Background image contained in stylesheet

2009-04-15 Thread Robby Russell
On Wed, Apr 15, 2009 at 9:32 AM, Rob Blimploid <
rails-mailing-l...@andreas-s.net> wrote:

>
> I realized that I should have included a bit more information in my
> previous post, so here's the revision.
>
> application.html.erb is correctly finding the stylesheet for my project
> via <%= stylesheet_link_tag 'style1' %>.  My webpages reflect the
> styling properly with a few exceptions .. the most notable being some
> .jpg images defined for background do not display at all.  I have those
> images in public/images.
>
> The following is the stylesheet code containing the reference to the
> image.
>
> #navigation {
>  width: 180px;
>  height: 484px;
>  background: #7da5a8 url(nav-bg.jpg) no-repeat;
> }
>

Your path needs to specify the full relative path.

url(/images/nav-bg.jpg)

Looks like you're missing 'images/'


>
> I tried the absolute path to the image above per: background: #7da5a8
> url(C:\InstantRails\rails_apps\getdowninthevalley\public\images\nav-bg.jpg)
> no-repeat; but that didn't work either
>
> This worked fine until I retrofitted the webpages into the Rails
> framework (which I really like, but which I'm relative new to).
>
> If anyone knows the solution, I would really appreciate it ... thanks in
> advance!
>
> Rubio
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>


-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://planetargon.com/
http://robbyonrails.com/
http://twitter.com/planetargon
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: host to try out rails with minimal traffic

2009-04-13 Thread Robby Russell

On Fri, Apr 10, 2009 at 8:19 AM, anne001  wrote:
>
> I tried Hostgator, but their instructions date from 2004 and although
> they have clued me in on some problems, for example the rails address
> is domain/app/public, I am no longer making progress.
>
> I tried to create a demo application from hostgator cpanel. I screwed
> up and now I can't restart this demo. It seems there is a mongrel
> server already running at the address. Somehow the cpanel started
> mongrel, and the hostgator support told me I had broken a rule by
> starting mongrel on their host site!
>
> So is there a host out there that will support rails, who would be
> helpful with instructions on what to do to get rails to work on their
> hosting service? I just need to put the site on line for a few weeks
> to get some data to continue to develop the application. Maybe 50
> users in 2 weeks.
>
> Buying a slice seems expensive for what I will get out of it.
>

Anne,

How much is your time worth to you? You might give us a whirl:

* http://railsboxcar.com/

We've made the deployment process a breeze. :-)

Cheers,
Robby

> anne
>
> >
>



-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://planetargon.com/
http://robbyonrails.com/
http://twitter.com/planetargon
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: Rails VS. .Net MVC

2009-04-03 Thread Robby Russell

* The Rails stack has zero licensing fees (argument can go a long way
in a tough economy)

On Fri, Apr 3, 2009 at 12:04 PM, Chris Johnson  wrote:
> Hello All,
>
> I have been put in a tough situation at work.  I have been developing rails
> applications for the past 2 years and thoroughly enjoy what I am doing.
> However it has been bestowed upon me to give an objective summary leading to
> the benefits of rails versus using Microsoft's MVC capabilities.
>
> I have been going back and forth with colleges on this and everyone has a
> response to how "their" technology is better.  I am looking for some other
> ideas / reasons why you people in the community like rails as a way to
> gather more evidence of to why we should use rails in an "enterprise" (the
> buzz word everyone around here uses) environment.
>
> Any opinions are greatly welcomed.  I love rails and dont want to go down
> with out a fight but need some good ammo and am looking for the community
> for advice as a way to answer the question "Why is Rails better"?
>
>
> Thanks,
>
> -Chris
>
> >
>



-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://planetargon.com/
http://robbyonrails.com/
http://twitter.com/planetargon
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: Restricted Textmate Command+T (jump to file)

2009-03-30 Thread Robby Russell

Look in Preferences > Advanced > Folder References.

There is a sexy regular expression for "Folder Pattern"... which you
can modify to include the directories you want to ignore. I don't
ignore 'spec', because I tend to jump to those files a lot. However, I
do block 'vendor'. This also impacts your Find|Grep|Ack in project
settings, so keep that in mind.

Good luck.

Cheers,
Robby

On Fri, Mar 27, 2009 at 1:28 AM, Fernando Perez
 wrote:
>
> Hi,
>
> Does any Textmate user know how to tell the jump to file command to not
> look in some folders? Currently my doc/ and spec/ folders are polluting
> the search facility, and it has become very hard for me to get to the
> desired file.
>
> Thanks in advance.
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>



-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://planetargon.com/
http://robbyonrails.com/
http://twitter.com/planetargon
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: YAHosting inquiry (yet another hosting inquiry)

2009-03-25 Thread Robby Russell
On Wed, Mar 25, 2009 at 8:07 AM, Sergio Ruiz <
rails-mailing-l...@andreas-s.net> wrote:

>
> i have read some of the posts here, but it seems like they may be a
> little dated, so i am posting this to the forum..
>
> i have a client who needs to have one smaller application hosted.
> initially, we set them up with a godaddy account, but there were just
> too many limitations to make that effective..
>
> here's what they will require:
>
> - mysql
> - capistrano
> - ssh
> - git
>
> any modifications to the code will happen here on site.. then be
> deployed to the server..
>
> i would  really like to keep this as inexpensive as possible, since they
> will need a minimum of resources..
>
> i noticed on the rails hosting survey results that pretty much everyone
> is using a sub $25 hosting plan..
>
> this is where we would like to be on this.
>
> any ideas?
>
> thanks!


Hi there,

Check us out at http://railsboxcar.com. We're just over the $25/month point,
but we believe that our customer service and experience with deploying and
hosting Ruby on Rails applications being at your disposal makes it a
worthwhile investment. :-)

Get in touch with us!

Cheers,
Robby

-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://planetargon.com/
http://robbyonrails.com/
http://twitter.com/planetargon
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: validates_presence_of

2009-03-17 Thread Robby Russell

Another option is to have an association for different types of phones
so that you can allow people to add as many as they need (and classify
if it's mobile, work, home, etc.)

On Tue, Mar 17, 2009 at 1:49 PM, Shuaib85  wrote:
>
> Hi all
>
> I am wondering of how to use validates_presence_of in case I want to
> check either one of the field is present
>
> for example
> validates_presence_of :phone_number, mobile_number
>
> I want to check if either one presents, it accepts the request. How
> can we do that
>
> thanks
>
> >
>



-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://planetargon.com/
http://robbyonrails.com/
http://twitter.com/planetargon
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: knowing when to go to multiple mongrel instances or dedicated server

2009-03-11 Thread Robby Russell

Ed,

If you're hosting provider is suggesting that passenger is slower,
it's in *their* environment. You might consider another provider then.

You might take a look at the survey results we just posted at
http://rails-hosting.com.

Cheers,
Robby

On Wed, Mar 11, 2009 at 2:23 PM, Ed  wrote:
>
> I'll take a look at that, thanks.  My hosting provider says that
> passenger is slower than mongrel in a shared environment, because of
> the delay when processes have to be restarted.
>
> But ultimately I will have the same question: how can I measure when
> traffic is too much for my shared host?
>
> On Mar 10, 8:42 pm, Tom Z Meinlschmidt  wrote:
>> Ed wrote:
>> > I have a rails app with a growing user base.  Right now it is on a
>> > single mongrel instance on a shared server.  Is there a quantifiable
>> > method I can use to measure when I need to add mongrel instances, or
>> > move to a dedicated server?  Are there rules of thumb for how many
>> > users or page hits an instance can support?  Or is it solely
>> > subjective, based on when the app starts to "feel" slow?
>>
>> Ed, why not to move to phusion passenger? It's fast and intended for
>> heavier load than mongrel (even in cluster)
>>
>> tom
>>
>> --
>> === 
>> 
>> Tomas Meinlschmidt, MS {MCT, MCP+I, MCSE, AER}, NetApp Filer/NetCache
>>
>> www.meinlschmidt.com www.maxwellrender.cz www.lightgems.cz
>> === 
>> 
> >
>



-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://planetargon.com/
http://robbyonrails.com/
http://twitter.com/planetargon
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] [ANN] Ruby on Rails Hosting 2009 Survey results!

2009-03-11 Thread Robby Russell

Hey all,

We just published the results from the Ruby on Rails hosting survey
that we ran a few months ago. You can see the results in CSV, PDF, and
HTML format at the following url:

* http://rails-hosting.com/

Thanks again to all those who helped us out with this!

Cheers,
Robby

-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://planetargon.com/
http://robbyonrails.com/
http://twitter.com/planetargon
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: No error but mail not sent?

2009-03-09 Thread Robby Russell

Check your spam folder?

Do you have a SMTP server running?

Robby

On Mon, Mar 9, 2009 at 12:14 PM, Guillaume Loader
 wrote:
>
> Hello everyone!
>
> In the console, it says "Email sent" with all informations. But when I
> check my inbox I got nothing.
>
>
> Any help?
>
> Thank you!
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>



-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://planetargon.com/
http://robbyonrails.com/
http://twitter.com/planetargon
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: development speed boosters

2009-03-09 Thread Robby Russell

On Mon, Mar 9, 2009 at 7:00 AM, Roger Muthton
 wrote:
>
> anyone know of any good development speed booster plugins or gems? the
> larger my app becomes, the slower development time becomes.. getting
> painfully slow..


Roger,

I'm not sure if this is still being maintained with the latest version
of Ruby on Rails, but it's worth looking into.

* 
http://www.robbyonrails.com/articles/2007/08/28/rails-development-performance-tip-dev_mode_performance_fixes

I found it on Github as well:

* http://github.com/yyyc514/rails_dev_mode_performance/tree

Good luck!

Cheers,
Robby


-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://planetargon.com/
http://robbyonrails.com/
http://twitter.com/planetargon
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: ERB not omiting lines

2009-03-05 Thread Robby Russell

Try...

 <%= x -%>

On Thu, Mar 5, 2009 at 3:46 PM, Aryk Grosz
 wrote:
>
>  According to numerous ERB tutorials, the following example:
>
>  <%- [1,2,3].each do |x| -%>
>  <%= x %>
>  <%- end -%>
>
>
> should output:
>
>   1
>   2
>   3
>
> Instead, it outputs:
>
>   1
>
>   2
>
>   3
>
> What am I doing wrong?
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>



-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://planetargon.com/
http://robbyonrails.com/
http://twitter.com/planetargon
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: How to navigate to an external URL from a controller

2009-03-05 Thread Robby Russell

Actually... it's both ways. The parenthesis aren't required in ruby
when calling methods.

Robby

On Thu, Mar 5, 2009 at 7:03 AM, Jacob Yong
 wrote:
>
> Thank you, Scott. It works! Just FYI, it's actually
> redirect_to("http://my-external-site.com";)
>
> Scott wrote:
>> redirect_to 'http://my-external-site.com'
>>
>> On Mar 4, 9:37�am, Jacob Yong 
>
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>



-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://planetargon.com/
http://robbyonrails.com/
http://twitter.com/planetargon
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: total per user

2009-03-04 Thread Robby Russell
t;%=h month.strftime('%B') %>
>> > > > 21:     <%=h number_to_currency(user.deals[month].collect
>> > > > (&:rev).sum, :precision => 0) %>
>> > > > 22:  <% end %>
>>
>> > > > On Mar 4, 3:38 pm, Colin Law  wrote:
>> > > > > Have you setup relationships between the models, User has many
>> > DealGroups
>> > > > > and DealGroup belongs to User, or whatever is appropriate. Then you
>> > won't
>> > > > > need @deal_groups and can use user.deal_groups as you originally
>> > wrote.
>>
>> > > > > 2009/3/4 esdevs 
>>
>> > > > > > ok so then I am where I am having difficulty is associating the
>> > user
>> > > > > > with the deal and displaying each user's deals.  So for example, if
>> > I
>> > > > > > change the code to the below, then it displays the total sum month
>> > to
>> > > > > > month as opposed to sum of each user month to month.
>>
>> > > > > > View
>> > > > > > <% for user in @users %>
>> > > > > > 
>> > > > > >        <%=h Time.now.year %>
>> > > > > >   <% @deal_groups.keys.sort.each do |month| %>
>> > > > > >     <%=h month.strftime('%B') %>
>> > > > > >     <%=h number_to_currency(@deal_groups[month].collect
>> > > > > > (&:rev).sum, :precision => 0) %>
>> > > > > >  <% end %>
>> > > > > > 
>> > > > > > <% end %>
>>
>> > > > > > Controller (is the same as above)
>> > > > > > def index
>> > > > > >   �...@users = User.find :all, :order => 'name ASC'
>> > > > > >   �...@deal_groups = Deal.find(:all).group_by {|t|
>> > > > > > t.saledate.at_beginning_of_month}
>> > > > > >  end
>>
>> > > > > > On Mar 4, 11:48 am, Colin Law  wrote:
>> > > > > > > You appear to be setting up @deal_groups then not using it. You
>> > are
>> > > > using
>> > > > > > > user.deal_groups instead, which the error suggests is not
>> > defined.
>>
>> > > > > > > 2009/3/4 esdevs 
>>
>> > > > > > > > so I am trying to sum month over month the amount that a user
>> > has
>> > > > > > > > posted.  So for example:
>> > > > > > > > User 1: Jan $3000 Feb $4000 March $1500, etc.  I can get this
>> > to
>> > > > work
>> > > > > > > > if I sum totals (aggregate of all users) but just not by user.
>>
>> > > > > > > > Here is my code in the controller:
>>
>> > > > > > > > def index
>> > > > > > > >   �...@users = User.find :all, :order => 'name ASC'
>> > > > > > > >   �...@deal_groups = Deal.find(:all).group_by {|t|
>> > > > > > > > t.saledate.at_beginning_of_month}
>> > > > > > > >  end
>>
>> > > > > > > > And then the code in the View
>> > > > > > > > <% for user in @users %>
>> > > > > > > > 
>> > > > > > > >        <%=h Time.now.year %>
>> > > > > > > >  <% user.deal_groups.keys.sort.each do |month| %>
>> > > > > > > >    <%=h month.strftime('%B') %>
>> > > > > > > >    <%=h number_to_currency(user.deal_groups[month].collect
>> > > > > > > > (&:rev).sum, :precision => 0) %>
>> > > > > > > >  <% end %>
>> > > > > > > > 
>> > > > > > > > <% end %>
>>
>> > > > > > > > Ultimately, I want to make this a partial but for now am
>> > getting
>> > > > the
>> > > > > > > > following error
>>
>> > > > > > > > NoMethodError in Users#index
>>
>> > > > > > > > Showing app/views/users/index.html.erb where line #19 raised:
>>
>> > > > > > > > undefined method `deal_groups' for #
>> > > > > > > > Extracted source (around line #19):
>>
>> > > > > > > > 16: <% for user in @users %>
>> > > > > > > > 17: 
>> > > > > > > > 18:     <%=h Time.now.year %>
>> > > > > > > > 19:   <% user.deal_groups.keys.sort.each do |month| %>
>> > > > > > > > 20:     <%=h month.strftime('%B') %>
>> > > > > > > > 21:     <%=h
>> > number_to_currency(user.deal_groups[month].collect
>> > > > > > > > (&:rev).sum, :precision => 0) %>
>> > > > > > > > 22:   <% end %>
>>
>> > > > > > > > Thanks in advance
>>
>> > > > > > > > esdevs
> >
>



-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://planetargon.com/
http://robbyonrails.com/
http://twitter.com/planetargon
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: Convert dynamic rails app to static html

2009-03-02 Thread Robby Russell
Yes, wget would be a good option.

On Mon, Mar 2, 2009 at 1:03 PM, Hassan Schroeder  wrote:

>
> On Mon, Mar 2, 2009 at 1:01 PM, Johan Van mol
>  wrote:
>
> >> You can just display source (ctl-u) for each page and save them to
> >> files.  They will be a static copy of what the system generated.
> >
> > Hi, I know I can do it that way, but that isn't very DRY,
> > since I would have to perform the same action over and over again for
> > each page...
> >
> > Is Rails able to automate this?
>
> I can't imagine much of a use case for Rails doing this, but why not
> just use wget to grab a complete site image?
>
> --
> Hassan Schroeder  hassan.schroe...@gmail.com
>
> >
>


-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://planetargon.com/
http://robbyonrails.com/
http://twitter.com/planetargon
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: new project at the same domain

2009-03-02 Thread Robby Russell
On Mon, Mar 2, 2009 at 8:49 AM, Petan Cert  wrote:

>
> > app1.mydomain.com
> > app2.mydomain.com
> >
> > or
> >
> > mydomain.com/app1
> > mydomain.com/app2
> >
> > Which one?
>
>
> I've just contacted my ISP and my hosting doesn't support running
> multiple applications :( Thanks for your replay.
>
> I cant deploy more than one app. :(
>

That sounds like a situation where you'd want to consider a new home. Check
us out at http://railsboxcar.com/ if you're interested in an pre-configured
and easy-to-deploy hosting solution for your Ruby on Rails applications.

Cheers,
Robby


-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://planetargon.com/
http://robbyonrails.com/
http://twitter.com/planetargon
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: rails spell check

2009-02-26 Thread Robby Russell

On Thu, Feb 26, 2009 at 9:22 AM, madhavi.k  wrote:
>
> Is ruby on rails supports aspell spell check ?
> Is there any links for spell check for rails application ?
> All links I gone through are discussing about php  but not ruby on
> rails?
>
>
> Plzz give me reply 
>

You can look into using Raspell.

* http://blog.evanweaver.com/files/doc/fauna/raspell/files/README.html

Good luck!

Cheers,
Robby

-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://planetargon.com/
http://robbyonrails.com/
http://twitter.com/planetargon
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: Hide password params in log file

2009-02-23 Thread Robby Russell

Pretty sure this is in there by default in recent versions of Rails.
(in application controller) (2.3 i believe)

On Mon, Feb 23, 2009 at 9:58 AM, Fernando Perez
 wrote:
>
>
>> in application.rb, insert: filter_parameter_logging "password"
>
> Thank you all for your replies. This should be included by default (or
> at least commented out?) in restful_auth generator and any other
> authentication plugin.
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>



-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://planetargon.com/
http://robbyonrails.com/
http://twitter.com/planetargon
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: Remove www from url

2009-02-23 Thread Robby Russell

On Mon, Feb 23, 2009 at 6:30 PM, Robby Russell  wrote:
> On Mon, Feb 23, 2009 at 2:07 PM, Dan Paul  wrote:
>>
>> So i have a rails app running in 2.0.2 and I would like to know if
>> anyone can point me in the right direction on how to remove the www
>> from the url. so if someone goes to www.mydomain.com it will forward
>> them to mydomain.com. I am running nginx, and thin, not sure if I do
>> it in routes, in my nginx config file...? let me know if anyone has
>> any insight to this. thanks.
>
> Dan,
>
> For apache:
>

Forgot to mention that RewriteEngine needs to be turned on. Example: :-)

RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.planetargon\.com$ [NC]
RewriteRule ^(.*)$ http://planetargon.com$1 [R=301,L]


> RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC]
> RewriteRule ^(.*)$ http://example.com$1 [R=301,L]
>
> For nginx:
>
>    #rewrites http://www.example.com/foo => http://example.com/foo
>    if ($host ~* www\.(.*)) {
>      set $host_without_www $1;
>      rewrite ^(.*)$ http://$host_without_www$1 permanent; # $1
> contains '/foo', not 'www.example.com/foo'
>    }
>

Cheers,
Robby

-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://planetargon.com/
http://robbyonrails.com/
http://twitter.com/planetargon
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: Remove www from url

2009-02-23 Thread Robby Russell

On Mon, Feb 23, 2009 at 2:07 PM, Dan Paul  wrote:
>
> So i have a rails app running in 2.0.2 and I would like to know if
> anyone can point me in the right direction on how to remove the www
> from the url. so if someone goes to www.mydomain.com it will forward
> them to mydomain.com. I am running nginx, and thin, not sure if I do
> it in routes, in my nginx config file...? let me know if anyone has
> any insight to this. thanks.

Dan,

For apache:

RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC]
RewriteRule ^(.*)$ http://example.com$1 [R=301,L]

For nginx:

#rewrites http://www.example.com/foo => http://example.com/foo
if ($host ~* www\.(.*)) {
  set $host_without_www $1;
  rewrite ^(.*)$ http://$host_without_www$1 permanent; # $1
contains '/foo', not 'www.example.com/foo'
}

Good luck!

Cheers,
Robby

-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://planetargon.com/
http://robbyonrails.com/
http://twitter.com/planetargon
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: rspec dependencies

2009-02-23 Thread Robby Russell

Try these instructions:

http://wiki.github.com/dchelimsky/rspec/rails

The cheat for rspec could be out of date.

Robby

On Mon, Feb 23, 2009 at 1:20 PM, Arshak Navruzyan
 wrote:
>
> Hello,
>
> I followed this
>
> http://cheat.errtheblog.com/s/rspec/
>
> to try to get rspec working with rails 2.2.2 and installed
>
> rspec and rack gems
>
> but I'm still getting the following messages
>
> c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
> `gem_original_re
> quire': no such file to load -- spec/autorun (MissingSourceFile)
>
> c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
> `gem_original_re
> quire': no such file to load -- spec/test/unit (MissingSourceFile)
>
> Thx,
>
> Arshak
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>



-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://planetargon.com/
http://robbyonrails.com/
http://twitter.com/planetargon
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: Hide password params in log file

2009-02-23 Thread Robby Russell

Fernando,

filter_parameter_logging is your friend.

* 
http://robbyonrails.com/articles/2007/07/16/rails-code-audit-tips-filtered-parameter-logging

Cheers,
Robby

On Mon, Feb 23, 2009 at 8:38 AM, Fernando Perez
 wrote:
>
> Hi,
>
> I just noticed that when users register or login to my website (I use
> restful_auth), their password gets printed out in the production.log
> file. How can I prevent that? I consider this a major security issue.
>
> SSL is used to prevent eavesdropping and passwords are stored encrypted
> in DB by the way, but I never thought about log files.
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>



-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://planetargon.com/
http://robbyonrails.com/
http://twitter.com/planetargon
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: creating virtual hosts with Mongrel?

2009-02-21 Thread Robby Russell

Groove,

Did you read my article? We do the following for subdomains as well.

* 
http://www.robbyonrails.com/articles/2009/01/11/subdomain-accounts-with-ruby-on-rails-explained

Cheers,
Robby

On Thu, Feb 19, 2009 at 11:59 AM, groovetrain  wrote:
>
> Both of these are very helpful, thank you both so much.
>
> Does passenger allow for full domain names?  Kindof like pseudo-hosts,
> like having a full www.alskdfjhdsaf.com pointed back to localhost:
> 3000?
>
> Is there some way of doing this by hacking the /etc/hosts file?
>
> Groove
>
> On Feb 19, 2:15 pm, Frederick Cheung 
> wrote:
>> On 19 Feb 2009, at 19:02, groovetrain wrote:
>>
>>
>>
>> > Does anyone know how to use Mongrel to create virtual hosts?  My
>> > production site will have all kinds of domains pointing to it, and I
>> > also need to figure out how to do subdomains.  Rails should react to
>> > the host name, doing a lookup based on the name and pull different
>> > records from the database based on this.
>>
>> Typically people use nginx, apache etc... to handle the nuts and bolts
>> side of virtual hosts. There's railscasts on using subdomains 
>> (http://railscasts.com/episodes/123-subdomains
>>   )
>>
>> Fred
>>
>>
>>
>> > For example, I'd likewww.mysite.comto point back to 127.0.0.1:3000,
>> > and the same for username.productionsite.com.
>>
>> > I'm using OS X Leopard
>>
>> > Any references or council will be appreciated, thanks in advance!
>>
>> > groove
> >
>



-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://planetargon.com/
http://robbyonrails.com/
http://twitter.com/planetargon
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: How to change a variable while editing a table? (scaffold)

2009-02-20 Thread Robby Russell

On Fri, Feb 20, 2009 at 11:19 AM, Guillaume Loader
 wrote:
>
> Hello everyone!
>
> I'm trying to modify an example from a book. The example show how to
> create a scaffold for a table.
>
> But I want to change the way things are modified.
>
> Here is the method in my controller :
>
>  def update
>@product = Product.find(params[:id])
>
>respond_to do |format|
>  if @product.update_attributes(params[:product])
>flash[:notice] = 'Product was successfully updated.'
>format.html { redirect_to(@product) }
>format.xml  { head :ok }
>  else
>format.html { render :action => "edit" }
>format.xml  { render :xml => @product.errors, :status =>
> :unprocessable_entity }
>  end
>end
>  end
>
> So I tried to add this line :
>
> Product.title =  "You don't decide the title! I do!"
>
> after @product = Product.find(params[:id])
>
> But I got an error (undefined method `title=' for #)
>
> Could you help me?
>
> Thank you!


Why would you want to do this in the controller (not through user input?)

If it's business logic, it belongs in the model.

You could do something like this in the Product model with callbacks.

class Product < ActiveRecord::base
  ...

  before_save :set_title_my_way

  protected
  def set_title_my_way
self.title = "this is my title..."
  end
end

Then when you do an @product.update_attributes(...) in your
controller, it'll run this before it saves overriding anything passed
in the parameters. It's generally bad-mojo to modify params during the
request.

Additionally, if with ActiveRecord callbacks you can do this before
create, update, or save (depending on how you want to approach this.)
Learn more about callbacks here:

* http://api.rubyonrails.org/classes/ActiveRecord/Callbacks.html

Hope this helps!

Cheers,
Robby



-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://planetargon.com/
http://robbyonrails.com/
http://twitter.com/planetargon
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: creating virtual hosts with Mongrel?

2009-02-19 Thread Robby Russell

You might consider switching to Passenger for stuff like this. This is
how our team is tackling this without much effort. Takes just a few
minutes to setup/switch. Here is a writeup on it (for OS X).

http://www.robbyonrails.com/articles/2009/02/11/switch-to-passenger-mod_rails-in-development-on-osx-in-less-than-7-minutes-or-your-money-back

Cheers,
Robby



On Thu, Feb 19, 2009 at 11:02 AM, groovetrain  wrote:
>
> Does anyone know how to use Mongrel to create virtual hosts?  My
> production site will have all kinds of domains pointing to it, and I
> also need to figure out how to do subdomains.  Rails should react to
> the host name, doing a lookup based on the name and pull different
> records from the database based on this.
>
> For example, I'd like www.mysite.com to point back to 127.0.0.1:3000,
> and the same for username.productionsite.com.
>
> I'm using OS X Leopard
>
> Any references or council will be appreciated, thanks in advance!
>
> groove
> >
>



-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://planetargon.com/
http://robbyonrails.com/
http://twitter.com/planetargon
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: rails hosting

2009-02-18 Thread Robby Russell

On Tue, Feb 17, 2009 at 7:25 PM, bramu...@gmail.com  wrote:
>
> Hi All,
>
>I am looking for the cheapest rails hosting with mysql support.
> Can you please let me know the best rails hosting when price is
> concerning. Are there any free rails hosting servers??
>
> Thanks,
> Ramu.


Not aware of any *free* hosting services for Rails, but I run
RailsBoxcar.com. We've been in the Rails hosting business for over
four years now would be happy to host your application(s).

http://railsboxcar.com

Cheers,
Robby


-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://planetargon.com/
http://robbyonrails.com/
http://twitter.com/planetargon
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: Personalized URL -- route.rb.

2009-02-17 Thread Robby Russell

Abhi,

Do you want that off of the root path or something like
http://domain.com/people/robbyrussell ?

These are generally referred to as permalinks.

Robby


On Tue, Feb 17, 2009 at 8:14 AM, Abhishek shukla  wrote:
> Hello Friends,
> I want to configure personalized url for e.g. - http://localhost:3000/xyz
> here xyz is a database value. Now for the same i have implemented the
> following syntax inside my route.rb file
>
> map.url '/:name', :controller => 'controller_name', :action => 'action_name'
>
> But now when ever i run my application the action_name.rhtml appears
> whereever i click.
>
> So guys really confused any suggestion from your side?
>
> Thanks
> Abhi
>
> >
>



-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://planetargon.com/
http://robbyonrails.com/
http://twitter.com/planetargon
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: Logging all exceptions

2009-02-13 Thread Robby Russell

On Thu, Feb 12, 2009 at 7:53 AM, koopmann.lenn...@googlemail.com
 wrote:
>
> Hey everyody,
>
> what is the best way to log _all_ exceptions that are thrown in my
> Rails application into a database table? I need some kind of hook in
> the Rails exception methods?!
>
> I already tried the Exception Logger plugin but that is not what I
> want.
>
> I just want to log _all_ exceptions into a database table without
> needing to call own methods everywhere I expect an exception.
>
> Thank you!
> Lennart

Lennart,

You might consider using Exceptional for this.

* http://getexceptional.com/

Save yourself the extra work...

Robby

-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://planetargon.com/
http://robbyonrails.com/
http://twitter.com/planetargon
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: get subdomain in localhost

2009-02-13 Thread Robby Russell

This might help you out.

http://www.robbyonrails.com/articles/2009/01/11/subdomain-accounts-with-ruby-on-rails-explained

Cheers,
Robby

On Fri, Feb 13, 2009 at 3:32 AM, Srinath A.
 wrote:
>
> Hi,
> I was wondering how to get subdomain name in my localhost.
> I'm on ubuntu and set domainnames in /etc/hosts like this
>
> 127.0.0.1 : localhost
> 127.0.0.1 : tokyo
> 127.0.0.1 : sub.tokyo
>
> when i was using puts request.domain it was showing "tokyo" when hit URL
> with http://tokyo:3002 and "sub.tokyo" when hit URL with
> http://sub.tokyo:3002
>
>
> then, how i can i differ subdomains in sub.tokyo
> i tried using request.subdomains.first, but showing nil in localhost
>
> Finaly i was looking for these when used
>  puts request.domain.inspect
>  ===>  "localhost" or "tokyo"
>  puts request.subdomains.first
>  ===> "sub"
>
> any help??
>
> thanks,
> sri..
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>



-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://planetargon.com/
http://robbyonrails.com/
http://twitter.com/planetargon
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: Get @current_user into model

2009-02-08 Thread Robby Russell

On Sun, Feb 8, 2009 at 8:22 AM, Geekyra  wrote:
>
> Hello, can anybody help me, how to pass @current_user (generated by
> session[user_id] into a model ? for example I have a relationship like
> below :
>
> User has many Journals
> User has many Categories
> Journals has many Items
> Items has many Categories
>
>
> The problem is I like to sum "amount" field in Item model based on
> category and user. So every user has their own category and their own
> category amount. So if I want to make a method that return sum of item
> amount where do I put it anyway ? On this problem I can't make through
> association cause User and Item doesn't related at all, they only
> related by journals data.

Assuming all your associations are setup right, you should be able to
do the following.

# in journals controller, this will return the current users journal
def show
  @journal = @current_user.journals.find( params[:id] )
end

# adding a new journal for the current user
# example, instead of doing something like:

@journal = Journal.new( params[:journal] )
if @journal.save 

You can do the following:

@journal = @current_user.journals.new( params[:journal] )
if @journal.save ...

By using the associations, you'll be able to add associated data to
the current user without much extra work.

Hope that helps!

Cheers,
Robby



-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://www.planetargon.com/
http://www.robbyonrails.com/
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: How to reference the "public" folder from "app/views/..."

2009-01-30 Thread Robby Russell

/public is the root of the public site... so just





On Fri, Jan 30, 2009 at 10:43 AM, Nebs Petrovic
 wrote:
>
> Hello,
>
> In my application.html.erb layout I have a reference to a .swf (flash
> movie) file that I want to embed.  I put the swf file in the
> "public/flash" directory (I created the "flash" folder).
>
> My question is how do I get a reference to the "public" folder that
> rails created from within a view template that is in "app/views/etc.." ?
> So that I can do something like:
> 
>
> The ".." doesn't point to the application root so I don't know how else
> to access the public folder.
>
> I'm not really sure what the "root" is when it comes to the html that
> rails uses.  When rails translates all the .html.erb stuff to plain html
> where does this all run from?  For example when you check the source
> code of a page from a browser you can see plain html that rails
> generated using all its fancy methods.  But where does this plain html
> live?  Is it generated on the fly upon request and then disappears into
> thin air?
>
> I've always been confused about this "html.erb" to "html" magic and any
> clarification on the matter is greatly appreciated.
>
> (Sorry for the 2 questions in one)
>
> Thanks in advance.
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>



-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://www.planetargon.com/
http://www.robbyonrails.com/
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: Suggestions for a rails webhost...

2009-01-29 Thread Robby Russell

http://railsboxcar.com/


On Thu, Jan 29, 2009 at 9:02 AM, Michael Kahle
 wrote:
>
> I have multiple domains I want to move to a rails host.  I would like
> full SSH access to the servers, ftp, and a knowledgeable support staff
> that I can get on the phone.
>
> Any suggestions?
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>



-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://www.planetargon.com/
http://www.robbyonrails.com/
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: [ANN] The RSpec Book is now in beta

2009-01-29 Thread Robby Russell

...and the crowd roars!

On Thu, Jan 29, 2009 at 7:36 AM, David Chelimsky  wrote:
>
> I'm pleased to announce the beta release of the Pragmatic Bookshelf's
> The RSpec Book: Behaviour Driven Development with RSpec, Cucumber and
> Friends!
>
> It's been a long time coming, and there's still a lot of work to do to
> get to print. The beta release has 9 of the 22 chapters we have
> planned. Most of what remains is almost done, but not quite ready to
> release yet. As with all of the Pragmatic beta books, we'll do regular
> updates every few weeks as we wrap up the remaining chapters and
> incorporate your feedback. And please do provide feedback. We want
> this book to serve you well!
>
> There are six authors involved: Dave Astels, Zach Dennis, Aslak
> Hellesoy, Bryan Helmkamp, Dan North, and me. I'm honored to be in such
> good company here, with the guys who brought us BDD, to the developers
> and maintainers of RSpec, Cucumber and Webrat.
>
> You can read more (and buy the book!) at 
> http://www.pragprog.com/titles/achbd/the-rspec-book
>
> On behalf of all the authors, I'd like to extend a special thank you
> to all of you who have contributed to the software and the
> conversation around RSpec, Cucumber, and BDD in general. RSpec would
> be nothing without the community that has evolved around it, so thank
> you, thank you, thank you.
>
> Again, THANK YOU!
> David Chelimsky
>
>
> >
>



-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://www.planetargon.com/
http://www.robbyonrails.com/
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] [ANN] Rails Boxcar - Now with Ruby Enterprise Edition / Phusion

2009-01-29 Thread Robby Russell

Hi all,

We've just launched a new version of Rails Boxcar, a streamlined
deployment environment for hosting Ruby on Rails applications.  Boxcar
is now shipping with the following pre-installed and ready for you to
deploy your application on.

* Ruby Enterprise Edition (REE)
* Passenger (mod_rails)
* plus all the goodies we've already been bundling

Boxcar plans now start at just $35/month and we offer a 30-day money
back guarantee. For more information, visit http://railsboxcar.com.

Thanks,
Robby

-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://www.planetargon.com/
http://www.robbyonrails.com/
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: User Interface / View Looks

2009-01-28 Thread Robby Russell

On Wed, Jan 28, 2009 at 10:13 AM, sullivan.t  wrote:
>
> What are people doing these days for the "user interface" side of
> applications?  I'm in the process of writing something, using a lot of
> CSS (good) but I keep getting the feel that this application ("rts")
> would be better shown to the world in a flash format on the view end.
> Thoughts? Adobe AIR?  Laszlo?


XHTML/CSS only requires on client-side plugin... a web browser. ;-)


Robby

-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://www.planetargon.com/
http://www.robbyonrails.com/
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: No user subdomains

2009-01-26 Thread Robby Russell

This might help..

http://robbyonrails.com/articles/2009/01/11/subdomain-accounts-with-ruby-on-rails-explained

Robby


2009/1/26 kossnocorp 
>
> No idea? Please help!
>
> On 26 янв, 10:54, kossnocorp  wrote:
> > Hi!
> >
> > Can you help me with a problem?
> >
> > I can not get into the router and use a subdomain name for the current
> > namespace. Should that be when you access namespacetest.domain.com/
> > test/ controller called Namespacetest::test
> >
> > I can not get a name or a subdomain of routes.rb and does not go to
> > use the namespace.
> >
> > We are grateful.
> >



--
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://www.planetargon.com/
http://www.robbyonrails.com/
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: Subdomains question

2009-01-18 Thread Robby Russell

On Fri, Jan 16, 2009 at 12:16 PM, elioncho  wrote:
>
> Hello,
>
> I have followed
>
> http://www.robbyonrails.com/articles/2009/01/11/subdomain-accounts-with-ruby-on-rails-explained
> and 
> http://www.37signals.com/svn/posts/1512-how-to-do-basecamp-style-subdomains-in-rails
>
> posts on working with subdomains (without the use of subomain-fu and
> other plugins). In those examples a user only can log into his/her
> account through his/her own subdomain.
>
> I wonder is there a way to log into one's account (subdomain) from the
> domain.
>
> Example:
>
> Logging from www.foo.com/session/new,
>
> should redirect me to,
>
> elioncho.foo.com
>

Hi there,

You could just authenticate off of the Person/User model (whatever you
name that) without scoping it to the account. Then just redirect_to
account_path(@user.account) or something along those lines.

Good luck!

Cheers,
Robby


-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://www.planetargon.com/
http://www.robbyonrails.com/
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: query performance boost

2009-01-18 Thread Robby Russell

On Thu, Jan 15, 2009 at 8:09 PM, Ukrit Himakoon
 wrote:
>
> I've a table with structure like this:
>
> id: int
> field1: varchar(255)
> field2: int(11)
> field3: text
> field4: text
> field5: varchar(255)
> field6: varchar(255)
>
> assume that this table contains massive contents on field 3 and 4
> So any way that I will be able to access this table quicker than my
> current query?
>
>
> And this is the way I'm access this table:
>
> Table.find(:all, :include=> "relate_table")
>
> please give me some hint (and I need all fields to display on page)


You can use :select in your calls to find to select specific fields to
retrieve data for.  Here is a quick writeup on it.

* http://www.geekskillz.com/articles/11

Good luck!

Cheers,
Robby


-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://www.planetargon.com/
http://www.robbyonrails.com/
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: How to build a new blog program with ruby?

2009-01-18 Thread Robby Russell

On Sun, Jan 18, 2009 at 6:15 AM, kalaso...@gmail.com
 wrote:
>
> Would you please tell me how to build a blog program by Ruby on Rails?
> Is it very difficult? Compare RoR with PHP, witch is more easier for
> beginners? Thanks!
>

Check out this online screencast/tutorial.

* http://rubyonrails.org/screencasts

Good luck!
Robby


-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://www.planetargon.com/
http://www.robbyonrails.com/
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: how do I add a new font for my RoR website (hosted on linux, developed on Mac) ????

2009-01-17 Thread Robby Russell

Greg,

You might want to read up a bit more on how fonts are used on the web.
If you declare specific fonts to be used in your CSS, it only tells
the browser to try and use it. If the person browsing the
site/application doesn't have the font specific installed on their
application, then they it'll default to a font it does have. Here is
some information that explains it.

* http://www.w3.org/TR/CSS2/fonts.html#q1

Hope that helps..

Robby

On Sat, Jan 17, 2009 at 2:02 PM, Greg Hauptmann
 wrote:
> Hi,
> Any pointers where to start digging re how I could use some fonts
> (e.g. http://www.iconian.com/c.html ) in my Rails web site?
> I develop on Mac, but deploy to a Linux box.  Does this mean I have to work
> out how to install fonts on both operating system I guess?  Would I then
> only have to refer to the fonts in the CSS style sheet such that my RoR
> application beyond this would need no further modification?
>
> --
> Greg
> http://blog.gregnet.org/
>
>
>
> >
>



-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://www.planetargon.com/
http://www.robbyonrails.com/
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: running a ruby expression stored in a database

2009-01-16 Thread Robby Russell

On Fri, Jan 16, 2009 at 8:32 AM, naevity  wrote:
>
> Is this even possible? I've got a ruby expression stored in a
> database, it's the code to run a plugin since I was having trouble
> passing variables stored in the database.
>
> When I try to call the code, it either outputs it as text, or doesn't
> display it at all. It's supposed to generate an image and display it.
>
> right now the code is stored in the database as:
>
> <%= barcode TEST1234, :encoding_format => Gbarcode::BARCODE_128 %>
>
> and in the View, I have this:
>
> <%= code.upc %>(where upc is the column name in the database)
>
> When I do this, nothing outputs in the view, but if I view the source,
> I can see the ruby expression.
>
> If I change the code stored in the database to this:
> barcode TEST1234, :encoding_format => Gbarcode::BARCODE_128
>
> This just displays the code on the webpage, which I would expect it
> to.
>
> am I doing something wrong or is this not possible?

This smells funny... so I wanted to ask for more information. How is
the ruby code going to be added into the database? Would users be
inputting ruby code somehow?

Robby

-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://www.planetargon.com/
http://www.robbyonrails.com/
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: Equivalent of Instant Rails in Mac

2009-01-14 Thread Robby Russell

You might try the Ruby & Rails Developer Bundle from EnterpriseDB
(basically Rails + PostgreSQL stack)

http://www.enterprisedb.com/products/download.do

Cheers,
Robby

On Wed, Jan 14, 2009 at 4:45 PM, erptool  wrote:
>
> Hi all,
>
> I have written full ERP Accounting application TooLERP - The Best Small Business ERP
> Accounting Software. I am using Instant Rails to make it available
> to windows users. I was wondering if there is an equivalent software
> on Mac also? I have heard that Mac OS X comes pre installed with Ruby
> on Rails.
>
> For lower versions (Tiger) you can install Locomotive and start using
> Rails Apps. Has someone used it? How hard is it ? Please share your
> expriences.
>
> Regards,
>
> Nick
> www.toolerp.com
> http://www.toolerp.com"; target="_blank">TooLERP - The Best
> Small Business ERP Accounting Software.
>
>
>
> >
>



-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://www.planetargon.com/
http://www.robbyonrails.com/
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: [ANN] SURVEY: Rails Hosting in 2009

2009-01-13 Thread Robby Russell

Thanks to all those who are filling out the survey. Don't hesitate to
tell your friends! :-)

On Tue, Jan 13, 2009 at 10:50 AM, Robby Russell  wrote:
> Hello all!
>
> We're running a survey over the coming weeks to collect information
> about how you all are currently deploying and hosting your Ruby on
> Rails applications. The data will be published for the entire
> community to use.
>
> My blog post about survey: http://rubyurl.com/cELU
>
>  If you have a few minutes to spare, please consider taking a few
> minutes to answer the survey questions.
>
> Take the survey here: http://rubyurl.com/rk5Y
>
> Thanks!
>
> Robby
>
> --
> Robby Russell
> Chief Evangelist, Partner
>
> PLANET ARGON, LLC
> design // development // hosting w/Ruby on Rails
>
> http://www.planetargon.com/
> http://www.robbyonrails.com/
> aim: planetargon
>
> +1 503 445 2457
> +1 877 55 ARGON [toll free]
> +1 815 642 4068 [fax]
>



-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://www.planetargon.com/
http://www.robbyonrails.com/
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] [ANN] SURVEY: Rails Hosting in 2009

2009-01-13 Thread Robby Russell

Hello all!

We're running a survey over the coming weeks to collect information
about how you all are currently deploying and hosting your Ruby on
Rails applications. The data will be published for the entire
community to use.

My blog post about survey: http://rubyurl.com/cELU

 If you have a few minutes to spare, please consider taking a few
minutes to answer the survey questions.

Take the survey here: http://rubyurl.com/rk5Y

Thanks!

Robby

-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://www.planetargon.com/
http://www.robbyonrails.com/
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: Rails Hosting

2009-01-11 Thread Robby Russell

On Fri, Jan 9, 2009 at 12:14 AM, jasoo24  wrote:
>
> For your needs, I would also have to recommend Dreamhost. You can
> deploy production-ready apps through Capistrano and it is a great and
> inexpensive Rails sandbox.
>
> HOWEVER, Dreamhost is slow to a crawl. It's actually unacceptably slow
> for any webapp trying to make money.. I'd venture to guess that not
> many users will stick around waiting for a website after it takes
> 10-20 seconds just to load the damn homepage.
>
> I am desperately seeking a super-FAST Rails host that won't cost me an
> arm-and-a-leg. I will check out all the suggestions mentioned here,
> but -
>

It really depends on what you consider, "an arm and a leg." ;-)



-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://www.planetargon.com/
http://www.robbyonrails.com/
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: Rails Hosting

2009-01-07 Thread Robby Russell

On Wed, Jan 7, 2009 at 2:48 PM, pete  wrote:
>
> Seems like the more I dig, the more things there are to consider :)
>
> With Slicehost, or any VPS for that matter, it seems like you get a
> machine to configure how you would like to, right?  Almost like a
> dedicated host, except, it's not (if that makes sense).  So if I go
> with a VPS, then I am free to use, Git, Passenger, or anything I want
> to...I just have to install it all myself?
>
> Thanks again for all the feedback.

Pete,

You can also look at services (such as ours) that provides you with a
fully configured and ready-to-go deployment environment.

* http://railsboxcar.com/

We make a bunch of the decisions for you so that you can focus on
coding and deploying updated versions of your applications.

Good luck!
Robby

-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://www.planetargon.com/
http://www.robbyonrails.com/
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: delete rows not updated

2009-01-05 Thread Robby Russell

On Mon, Jan 5, 2009 at 12:32 PM, Me  wrote:
>
> I have a table of data that I update with a file.  I would like to
> delete all data that does not get updated.

We've done stuff like this before. One pattern that we used was:

1) At the beginning of the import process, we'd set a unique value
(like a timestamp/date)
2) We'd update an attribute in the table for all records with that value:

example: last_import = 20081231

3) then run your import/update process..
4) then delete any records that last_import != 20081231

voila!

Robby

-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://www.planetargon.com/
http://www.robbyonrails.com/
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: HTML question...

2009-01-02 Thread Robby Russell

Hmm, I'd advocate that you use images in this place so that people
know it's not something that you can interact with. From a usability
standpoint, if you provide a checkbox that looks like they can
interact with, they might try. Keep it simple and obvious to the
end-user.

On Fri, Jan 2, 2009 at 6:48 AM, Patrick Doyle  wrote:
> if you are offended by HTML questions on this list, please feel free to
> flame me off list.
>
> I would like to display a boolean value in my #index view as a checkbox that
> is checked when true and blank when not true.  Is there some markup that can
> do this?  Is it "legal" to embed an  tag outside the
> context of a form?  Even if it's "legal", is it considered bad practice?
>
> I've poked around a little looking to see what others have done, and I could
> embed a checkmark image in my page, or I could embed the proper Unicode code
> for a checkmark, and hope that the browser has a font installed with that
> character, but it seems to me that the browser must already know how to
> display a checkmark, and in the principle of DRY, I should be able to reuse
> it :-)
>
> --wpd
>
>
> >
>



-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://www.planetargon.com/
http://www.robbyonrails.com/
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: Having Problems Starting with Ruby on the rails

2008-12-31 Thread Robby Russell

It's also not likely to work if you have a capital M...

If you have a manage_controller... it'd just be /manage (sans-uppercase)

On Wed, Dec 31, 2008 at 9:08 AM, bobnyso...@googlemail.com
 wrote:
>
> Please can you help I'm having this problem when I type in this URL on
> my browser: http://localhost:3000/Manage
>
> Routing Error
>
> No route matches "/Manage" with {:method=>:get}
>
> >
>



-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://www.planetargon.com/
http://www.robbyonrails.com/
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: Installing Plugins Offline?

2008-12-29 Thread Robby Russell

On Mon, Dec 29, 2008 at 12:58 AM, Frederick Cheung
 wrote:
>
>
>
> On Dec 29, 8:28 am, sa 125  wrote:
>> How would I go about installing rails plugins offline? I cannot connect
>> to the web on my work computer, though I have a dedicated internet
>> machine for downloads and such.
>>
>
> Installing plugins just copies them to vendor/plugins, so if you can
> download them elsewhere you should be fine.
>

This isn't entirely accurate. There are some install scripts that can
be run when the plugin includes them. (for example, setting up some
config files for you)

For example, look at the following plugin (one our customers use for
deployment for http://railsboxcar.com/ )

http://github.com/planetargon/boxcar-conductor/tree/master

You'll see in the README that there is a command to run script/runner
install.rb if you're doing manually.

So, if you are doing it manually, make sure to check for an install.rb
(or uninstall if you're removing a plugin)

Cheers,
Robby

-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://www.planetargon.com/
http://www.robbyonrails.com/
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: A CSS issue

2008-12-28 Thread Robby Russell

On Sun, Dec 28, 2008 at 3:06 PM, Jables  wrote:
>
> Hey,
>  This question is actually more of a css issue than anything I
> believe.  Hopefully that is alright, I have been posting my questions
> on here for a while and figure most of the rails community is probably
> familiar with css.  My website: www.uberpwner.com displays correctly
> in safari and firefox, but in IE it is completely screwed.  I don't
> even know where to begin to fix it.  Can anyone take a quick glance
> and let me know what might be up?
>


The problem is IE and your HTML/CSS isn't working well for it. If
you're unsure, you should contact a CSS guru to help you figure out
how to work with the beast that is known as Internet Explorer.

Robby

-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://www.planetargon.com/
http://www.robbyonrails.com/
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: Finding items in a Join Table

2008-12-28 Thread Robby Russell

This *might* work... it's worth trying at least. ;-)

@products = Brand.find( brand_id ).categories( category_id ).products

On Sun, Dec 28, 2008 at 9:25 AM, Rembrant
 wrote:
>
> Dear readers,
>
> I'm very new to RoR, I walked trough the Agile Web Development With
> Rails book, but I still got stuck. I'm trained as a designer, so
> coding isn't really my branch but I try to get by. Anyways, here is my
> question.
>
> I set up 3 tables including one join table like this:
>
>
>
> class Category < ActiveRecord::Base
>  has_many :products
>  has_many :brands, :through => :products, :uniq => true
> end
>
> class Brand < ActiveRecord::Base
>  has_many :products
>  has_many :categories, :through => :products
> end
>
> class Product < ActiveRecord::Base
>  belongs_to :category
>  belongs_to :brand
> end
>
>
>
> I can easily find brands belonging to a certain category doing this:
>
>
>
> @brands = Category.find(session[:selected_category]).brands
>
> (it gets the session var from a link_to_remote's params[:id])
>
>
>
> But now I'm trying to find all the products that belong to a certain
> brand and a certain category, so for example  only Laptops (category)
> made by Apple (brand). This is the code I've got this far, but I'm
> sure there must be something more elegant and something that just
> works better, because this code seems to fail frequently:
>
>
>
> @products = Product.find(:all, :conditions => "category_id = '#{session
> [:selected_category].id}' AND brand_id = '#{session
> [:selected_brand].id}'")
>
>
>
> This doesn't look too crazy from what I remember from mysql, but I bet
> there is something way Rubier.
>
> Any help would be greatly appreciated.
>
> Kindest regards,
>
> - Rembrant
>
> >
>



-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://www.planetargon.com/
http://www.robbyonrails.com/
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: problems w/ partials and yield

2008-12-28 Thread Robby Russell

Are you familiar with content_for ?

<%= yield :list_roles -%>

<% content_for :list_roles, 'content here' -%>

or as a block

<% content_for :list_roles do %>
  content here...
<% end %>

Cheers,
Robby

On Fri, Dec 26, 2008 at 12:15 PM, Clem Rock
 wrote:
>
> Hello,
>I love the concept of using <%=yield %> to automatically render
> content but there are times where I find it a bit restraining.
>
> For instance, I would like to to use the exact same partial for these 2
> methods:
>
> list_roles and create
>
> If I try to use render :partial => 'list_roles' in the create method,
> the only way I can get it to work is to create a _list_roles.html.erb
> template which seems like a bit of overkill.
>
> The only difference that the create/list_roles template is going to have
> is one extra dynamic table row.
>
> Is there anyway to increase the flexibility of the yield method?
>
> Thanks,
> Clem
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>



-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://www.planetargon.com/
http://www.robbyonrails.com/
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: Trouble with MacPorts install, .profile file not created/ need help

2008-12-28 Thread Robby Russell

On Sat, Dec 27, 2008 at 2:25 PM, paul.denlin...@gmail.com
 wrote:
>
> I have just installed MacPorts 1.7.0 for Leopard using a
> downloaded .dmg file. Following the download and installation, I
> looked for the .profile file to change the environment variables, but
> found that no .profile file was created.
>
> When I tried to do so, I got an error message:
>  /Applications/TextEdit.app/Contents/MacOS/TextEdit .profile
> 2008-12-27 14:19:02.393 TextEdit[47100:10b] *** CFMessagePort:
> bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port =
> 0x5203, name = 'com.apple.TextEdit.ServiceProvider'
> See /usr/include/servers/bootstrap_defs.h for the error codes.
>
> Can anyone tell me what this means, and what I should do to correct
> the situation? Should I create a .profile file, and where should I
> store it? Should I follow instructions about the normal environment
> variables so the path points to /opt/local/ ?
>
> Thank you.

Paul,

You might look through the following tutorial:

* 
http://www.robbyonrails.com/articles/2008/01/22/installing-ruby-on-rails-and-postgresql-on-os-x-third-edition

If that doesn't help, you might head to the MacPorts mailing lists for
assistance.

Good Luck!

Cheers,
Robby


-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://www.planetargon.com/
http://www.robbyonrails.com/
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: building an array of dates

2008-12-28 Thread Robby Russell

On Sat, Dec 27, 2008 at 4:44 PM, Jeremy Weiskotten
 wrote:
>
> bingo bob wrote:
>
>> How do I display twelve of em...I know this is uber easy but I can't get
>> it to work.
>>
>> I firgure something like what follows is useful but I cant get the loop
>> within the loop working in the view.
>>
>> <%
>> start = Time.now.month
>> finish = Time.now.month + 12
>> %>
>
> Yeah, that's not going to work. The easiest way is probably something
> like this:
>
> <% d = Date.today %>
> <% 12.times do %>
>
>  <%= calendar(:year => d.year, :month => d.month) do |d|
>if @BookedDays.include?(d)
>  [d.mday, {:class => "specialDay"}]
>else
>  [d.mday, {:class => "normalDay"}]
>end
>  end
>  %>
>
> <% d >>= 1 # advance 1 month %>
> <% end %>


Small critique here on your code style. @BookedDays doesn't really
follow Ruby on Rails conventions. Camel-case should only be used by
class/module definitions and references. @booked_days is the
convention that Rails encourages.

This might be something that you've decided based on a personal or
team preference, but in case you're not attached to it, following
Rails conventions will make your life and anybody else that later
works on a project.. a little easier. :-)

Cheers,
Robby

-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://www.planetargon.com/
http://www.robbyonrails.com/
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: Menu table in Rails

2008-12-28 Thread Robby Russell

On Sun, Dec 28, 2008 at 8:08 AM, cgommel  wrote:
>
> Hello,
>
> being a very early beginner I want to build my first little rails app.
>
> I want to show the users (my co-workers) the menu table of our
> catering service.
>
> We can choose between five different dishes, some salads and desserts
> every day.
>
> Looking through all the (quite good) tutorials on the Internet I could
> not find a similar task - meaning a similar data structure.
>
> Is there anybody who can give me an idea for the data model I shoud
> use.
>
> I don't have any experience with Rails that makes me find a proper
> solution. Is there a way to define "Menu[1..n], Salad [1..m], Dessert
> [1..i] for  each day in an elegant way?

Hi there,

Honestly, one of the best ways for you to map out your data model is
to break down each element in your menu (assuming you have an existing
physical one) to get a clear picture. What does a Menu consist of?
What does a Menu Item consist? Are there different types of menu
items? Does each menu item have a name, description, and price?

Perhaps I helped you out a bit there, but that's really the best place
to start. Don't think about the technical relationships until you
answer those types of questions. While doing it, you'll see that your
data model will evolve organically.

Another tip, start with the easiest thing to model, which my guess
would be the Menu itself (sans-menu items). You can have an empty Menu
with your catering business information to start (name of business,
address, etc..). Then think about what needs to go inside of it and
begin to evolve your data model over time. This is also how you might
consider developing the application. Build it in small pieces and
evolve it as you go. This is one of the things that Rails encourages
you to do.

Keep it simple!

Cheers,
Robby
-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting w/Ruby on Rails

http://www.planetargon.com/
http://www.robbyonrails.com/
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: Hash Sorting

2008-12-28 Thread Robby Russell
On Sat, Dec 27, 2008 at 8:28 AM, Jeremy Weiskotten
 wrote:
>
> Frederick Cheung wrote:
>> On Dec 27, 4:18�pm, Jeremy Weiskotten > s.net> wrote:
>>> hash = {}
>>> key = [date, album_id]
>>> hash[key] = value
>>>
>>> However, hashes are not sorted in Ruby 1.8. Rails 2.x has an OrderedHash
>>> that maintains the keys' nsertion order, but it's not efficient for
>>> lookup by key. If you only plan to use the hash for iteration, that's
>>
>> OrderedHash is a lot speedier in 2.3
>>
>> Fred
>
> Good to know, although I'm not even on 2.2 yet due to plugin
> incompatibilities. Thanks!
>

Jeremy,

I apologize if this was already considered, but you  *can* sort a hash
by a key/value, but it's not inherently sorted for you.

* 
http://www.oreillynet.com/ruby/blog/2005/12/sorting_an_array_of_hashes_wit_2.html

Good luck!

Cheers,
Robby

-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting

http://www.planetargon.com/
http://www.robbyonrails.com/
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: One layout for entire apps

2008-12-28 Thread Robby Russell

On Sun, Dec 28, 2008 at 4:40 AM, Joshua Partogi  wrote:
>
> Dear all,
>
> I am still new in rails, and I realised that in rails each model has
> its own layout/template located under layouts/
>
> Now my question is, is it possible to have only one layout for the
> entire apps instead of having separate one for each model? If so, is
> there any guide I can read about it? Or could someone give me a hint
> on how to do it
>
> Thanks in advance

Joshua,

By default, Ruby on Rails will attempt to render the following layout view.

* /app/views/layouts/application.html.erb

This would match the ApplicationController naming.

Good luck!

Cheers,
Robby


-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting

http://www.planetargon.com/
http://www.robbyonrails.com/
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: What to call Rails + merb

2008-12-27 Thread Robby Russell

Rear Limbs
Lamb Riser
Sir Marble

http://wordsmith.org/anagram/anagram.cgi?anagram=merb+rails&t=1000

;-)

On Fri, Dec 26, 2008 at 9:48 PM, Ken Wagner
 wrote:
>
> Maybe Merle?
> Merble?
> Marble?
>
> Raileries?
> Rhuberb?
> Rumer?
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>



-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting

http://www.planetargon.com/
http://www.robbyonrails.com/
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: Recommend an upmarket host

2008-12-26 Thread Robby Russell

On Fri, Dec 26, 2008 at 3:20 PM, Robert Matei
 wrote:
>
> I have limited scaling experience and I'm expending too much energy
> keeping my servers up. Fortunately now I can afford to pay more. Here's
> what I want:
> - tools to easily manage multiple servers
> - tools to easily cluster my apps
> - tools / people to automatically configure apache, mysql, etc.
> - good built-in monitoring
> - ability to ask somebody about common Rails performance issues and so
> on
>
> I guess the default answer is Engine Yard, but while I'm willing to pay
> a good bit for access to expertise, I don't want to pay hundreds of
> dollars for each extra gig of RAM.
>
> That leaves Rails Machine, who seems like a good fit. Who else is out
> there in that vein?
>

You might consider Rails Boxcar, which is managed by my company,
Planet Argon. We've been involved in Ruby on Rails hosting for nearly
four years now and have that expertise that you're looking for. :-)

* http://railsboxcar.com

Feel free to contact us and/or me directly if you have any questions.

Cheers,
Robby

-- 
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting

http://www.planetargon.com/
http://www.robbyonrails.com/
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



  1   2   >