[Rails] Re: Invoking browser from Ruby script with URL argument: How?

2011-08-08 Thread Jarin Udom
On a Mac, you don't need launchy, just do: open http://example.com/whatever -- 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/-/nCJTNPPEys0J. To post

[Rails] Re: Best way for social networking in rails

2011-07-09 Thread Jarin Udom
I'm obviously making a lot of assumptions here, but I've heard it's pretty common for developers in India to be herded through diploma mill tech schools and then realize after they get hired that they actually don't know how to write code. Well, I guess that does sort of happen here in the US

Re: [Rails] Textastic or Koder?

2011-07-04 Thread Jarin Udom
Just a qualifier on the vim or emacs thing: vim or emacs *if you are already a proficient coder*. Textastic and Koder are both iPad apps, just FYI guys. Koder does look a little more featureful, but it's unfortunate that neither of them support git. -- You received this message because you

[Rails] Re: %= % Interpolation question

2010-02-28 Thread Jarin Udom
You may also want to check out Liquid for a safer way of doing templates: http://www.liquidmarkup.org/ Jarin Udom Robot Mode LLC On Feb 27, 1:15 pm, Dudebot craign...@gmail.com wrote: Found it.  Use #{}, eval and '' e.g. foo = '#{ bar }' then eval( '' + foo + '' ) will interpolate bar

[Rails] Re: Fascism is coming to Internet

2010-02-23 Thread Jarin Udom
I call Internet Hitler! Who wants to be my Goebbels? Also, we need someone to build the concentration camps for Furries. Jarin On Feb 23, 6:10 am, Joan Miller pelok...@gmail.com wrote: *Sorry by this off topic message, but this is too important* Fascism is coming fastly to Internet because

[Rails] Re: searching based on the return values of instance methods

2010-02-20 Thread Jarin Udom
an integer into a datetime object and use it in a Searchlogic search like so: age = 29 User.birthdate_greater_than(age.years.ago).birthdate_less_than((age - 1).years.ago).all Hope this helps! Jarin Udom Robot Mode LLC On Feb 19, 10:30 pm, Ease Bus ease...@gmail.com wrote: Can I use something like

[Rails] Re: need advise with search / browsing

2010-02-17 Thread Jarin Udom
Check out the searchlogic gem, it will make your life way easier on this. Jarin Udom Robot Mode LLC On Feb 16, 12:29 pm, tom tomabr...@gmail.com wrote: hi, have a JOB-model, which belongs_to a variety of other models, eg: Industry, Category etc... i have: ## controller

[Rails] Re: simpler alternative to Capistrano for single instance deployments?

2010-02-15 Thread Jarin Udom
Moonshine takes Capistrano and makes it insanely easy, if you are running on an Ubuntu VPS or dedicated server (think Slicehost or similar). I gave a talk recently at SD Ruby that is a good overview of what it does: http://jarinheit.com/a-talk-i-gave-at-sd-ruby-deploying-rails-apps Jarin Udom

[Rails] Re: simpler alternative to Capistrano for single instance deployments?

2010-02-15 Thread Jarin Udom
By the way, forgot to mention that the real strength of Moonshine for simple setups is that the default configuration works amazingly well. You can go from a bare Ubuntu server with only ssh to a fully-running Rails app in around 10 minutes with maybe 5 lines of configuration. Jarin On Feb 15,

[Rails] Re: simpler alternative to Capistrano for single instance deployments?

2010-02-15 Thread Jarin Udom
. On Feb 15, 6:45 pm, greghauptmann greg.hauptm...@gmail.com wrote: Jarin - noting it has Capistrano under the bonnet what does Moonshine add exactly?  When/why would you use Moonshine (with Cap) over just Capistrano by itself? thanks Greg On Feb 16, 12:29 pm, Jarin Udom ja...@robotmo.de wrote

[Rails] Re: ActiveRecord, Find that return only one column

2010-02-15 Thread Jarin Udom
-inefficient in Rails from what I understand. http://blog.hasmanythrough.com/2006/3/7/symbol-to-proc-shorthand (check the comments) Jarin Udom Robot Mode LLC On Feb 15, 10:21 pm, Samiron samironp...@gmail.com wrote: Assuming the followings:      - Your Search model have a column word

[Rails] Re: how do I get all records whose count of associations is above a certain number

2010-02-13 Thread Jarin Udom
: Player.all(:conditions = [trophies_count ?, 5]) Jarin Udom Robot Mode LLC On Feb 13, 10:54 pm, Frank Kim railso...@gmail.com wrote: I have a model, let's call it Player. It has many Trophies. How do I do a simple query in Rails in my controller that will return let's say all Players that have more

[Rails] Re: Migration commits when run by itself (db:migrate:up), but not with other migrations (db:migrate)

2010-02-11 Thread Jarin Udom
You need to put Item.reset_column_information at the top of the migration so Rails reloads the altered table. Jarin Udom Robot Mode LLC http://robotmo.de On Feb 11, 12:58 pm, Adam Stegman adam.steg...@gmail.com wrote: I tried doing the whole thing in one migration - adding the column

[Rails] Re: Migration commits when run by itself (db:migrate:up), but not with other migrations (db:migrate)

2010-02-11 Thread Jarin Udom
Oh also Item.reset_column_information needs to be after the add_column and before the Item.all.each if you are adding the column and manipulating the data in the same migration. If it is 2 separate migrations, just put it at the top of the 2nd one. Jarin Udom Robot Mode LLC http://robotmo.de

[Rails] Re: nil object - can anyone help?

2010-02-10 Thread Jarin Udom
is only visible to logged in users. You can do this with something like: % if @user @user.invitation_limit 0 % Also, in your create method you'll want to do something like: @invitation.sender = @user or @invitation.sender = current_user Jarin Udom Robot Mode LLC http://robotmo.de On Feb 10, 2

[Rails] Re: RoR hosting help?

2010-01-29 Thread Jarin Udom
Hi, I would use Heroku and store the images on Amazon S3. Jarin Udom Founder, Robot Mode LLC @jarinudom On Jan 28, 12:15 pm, Mike mrh...@gmail.com wrote: Hi, I am looking for suggestions for hosting for a site we're developing in RoR (working with developer): The site allows photographers

[Rails] Re: Why do so many Ruby/Rails developers use Macs?

2010-01-06 Thread Jarin Udom
Rails: Makes common decisions for you so you can focus on the end result. Works great for 99% of cases, but if you want to do your own thing for special cases it's not hard to do. OS X: Makes common decisions for you so you can focus on the end result. Works great for 99% of cases, but if you