Re: [Rails] Set the ruby default version with using rvm

2011-07-05 Thread Chirag Singhal
Can you paste the output of rvm list here? You have to make sure that you using correct ruby before you install anything. Did you make the changes to your profile (~/.bashrc or ~/.bash_profile) as instructed by rvm? Chirag http://sumeruonrails.com On Tue, Jul 5, 2011 at 11:27 AM, coolesting

Re: [Rails] ruby script/server giving error

2011-07-05 Thread rajeevsharma86
run gem env and paste here On Tue, Jul 5, 2011 at 11:12 AM, Amrit Pal Pathak amritpalpath...@gmail.com wrote: Starting a server giving error = Rails 2.3.5 application starting on http://0.0.0.0:3000 /usr/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/gem_dependency.rb:119:Warning:

Re: [Rails] ruby script/server giving error

2011-07-05 Thread rajeevsharma86
http://www.mattvsworld.com/blog/2010/03/version_requirements-deprecated-warning-in-rails/ On Tue, Jul 5, 2011 at 11:45 AM, rajeevsharma86 rajeevsharm...@gmail.comwrote: run gem env and paste here On Tue, Jul 5, 2011 at 11:12 AM, Amrit Pal Pathak amritpalpath...@gmail.com wrote: Starting

[Rails] Best way to auto-resize uploaded images...

2011-07-05 Thread ECP
Hi, Non-dev here seeking community input on / recommendation for an issue. Working on a style QA site with some image uploading and looking for a recommended approach to auto-centering, orienting and resizing when dealing with pictures with widely varying dimensions. I've heard several different

Re: [Rails] Set the ruby default version with using rvm

2011-07-05 Thread coolesting
1. dengx@dengx-desktop:/$ rvm list rvm rubies ruby-1.9.2-p180 [ i386 ] dengx@dengx-desktop:/$ 2. dengx@dengx-desktop:/$ echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games: /usr/local/ruby/bin the red string is my installation path of ruby, and i put this

Re: [Rails] ruby script/server giving error

2011-07-05 Thread Amrit Pal Pathak
On Tue, Jul 5, 2011 at 2:15 AM, rajeevsharma86 rajeevsharm...@gmail.comwrote: run gem env and paste here RubyGems Environment: - RUBYGEMS VERSION: 1.3.7 - RUBY VERSION: 1.8.7 (2010-01-10 patchlevel 249) [i486-linux] - INSTALLATION DIRECTORY: /usr/lib/ruby/gems/1.8 - RUBY

Re: [Rails] Set the ruby default version with using rvm

2011-07-05 Thread Chirag Singhal
Try this: rvm use ruby-1.9.2 gem install rails Chirag http://sumeruonrails.com On Tue, Jul 5, 2011 at 12:18 PM, coolesting coolest...@gmail.com wrote: 1. dengx@dengx-desktop:/$ rvm list rvm rubies ruby-1.9.2-p180 [ i386 ] dengx@dengx-desktop:/$ 2. dengx@dengx-desktop:/$ echo

[Rails] Re: Textastic or Koder?

2011-07-05 Thread Javix
Koders (and not Koder) is just a code search plugin to search code (see http://corp.koders.com/downloads): [quote] Koders offers downloadable plug-ins that enable software developers to easily search and reuse source code from within their chosen workspaces. The plug-ins enhance Integrated

Re: [Rails] Help with email

2011-07-05 Thread Peter De Berdt
On 04 Jul 2011, at 23:36, Rodrigo Ruiz wrote: I'm receiving this error: Errno::ECONNREFUSED Error number :: Error Connection Refused Your e-mail server refuses your connection. Either it doesn't allow SMTP relaying at all, it uses POP-before-SMTP (what most e-mail clients do: fetch new

[Rails] Re: Problem with special characters and CSV upload

2011-07-05 Thread Sebastian
OK, thank you for your reply! In the meantime I figured out why this was working without errors in my first code! There I had some REGEX checks before saving each row into the database. That means the first row always got skipped, because the unicode indentifiers didn't fit to the REGEX. Now I

[Rails] 3.1RC4 or 3.2

2011-07-05 Thread itsterry
Just a quickie... I'm seeing Rails 3.2 Beta already on Github, though 3.1 is still at RC4. Is the plan still to release 3.1 or are we skipping straight to 3.2? Forgive me if it's a dumb question: it's asked honestly. -- You received this message because you are subscribed to the Google Groups

[Rails] Re: Set the ruby default version with using rvm

2011-07-05 Thread Robert Campbell
After installing rvm, you should close the current terminal window and open a new one. You do not need to install the rvm gem (it is not recommended either.) I will assume you are using ubuntu. To install rvm, you need to have curl and git installed. (run sudo apt-get install curl git if you

[Rails] Re: Best way to auto-resize uploaded images...

2011-07-05 Thread Mihai Lazar
I think you could check out what Spree does with ImageMagik. https://github.com/spree/spree -- 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

[Rails] Problem in accessing bucket of my AWS S3 account

2011-07-05 Thread Surya
I tried to establish connection to my aws s3 account like this in my irb console - AWS::S3::Base.establish_connection!(:access_key_id = 'my access key', :secret_access_key = 'my secret key', :server = s3-ap-southeast-1.amazonaws.com) And it works well and prompt this - =

[Rails] Upgrading application Rails2 - Rails3.

2011-07-05 Thread Piotr Stepniak
Hello! I didn't find any similar active topic about it, but I found some similar, but not very specific. I have issue after upgrading gems and starting application I get NoMethodError in user model https://gist.github.com/1063958 What I was suggested to be the issue is different way to load

Re: [Rails] Re: Textastic or Koder?

2011-07-05 Thread Rodrigo Ruiz
Sorry, I forgot to say, I want it for iPad On Tue, Jul 5, 2011 at 10:05 AM, Javix s.camb...@gmail.com wrote: Koders (and not Koder) is just a code search plugin to search code (see http://corp.koders.com/downloads): [quote] Koders offers downloadable plug-ins that enable software developers

Re: [Rails] Help with email

2011-07-05 Thread Rodrigo Ruiz
actually I'm running it locally (localhost) On Tue, Jul 5, 2011 at 10:13 AM, Peter De Berdt peter.de.be...@pandora.bewrote: On 04 Jul 2011, at 23:36, Rodrigo Ruiz wrote: I'm receiving this error: Errno::ECONNREFUSED Error number :: Error Connection Refused Your e-mail server refuses

Re: [Rails] Re: Set the ruby default version with using rvm

2011-07-05 Thread coolesting
dengx@dengx-desktop:~$ type rvm | head -1 rvm is hashed (/usr/local/bin/rvm) What is that mean about above ? a hashed function ? 2011/7/5 Robert Campbell wapr...@gmail.com After installing rvm, you should close the current terminal window and open a new one. You do not need to install the rvm

Re: [Rails] Set the ruby default version with using rvm

2011-07-05 Thread coolesting
It will make a error if i using the sudo to install it, something like this as you said , dengx@dengx-desktop:~$ rvm use ruby-1.9.2 Using /usr/local/rvm/gems/ruby-1.9.2-p180 dengx@dengx-desktop:~$ gem install rails ERROR: While executing gem ... (Gem::FilePermissionError) You don't have

Re: [Rails] Set the ruby default version with using rvm

2011-07-05 Thread coolesting
BTY, i want to install it again, and i will get a question. The file 'lib' not found . , i googled it and saw a post that says add a directory /lib/ruby/gems/ ... ... i did it as that post, but it still not works. 2011/7/5 coolesting coolest...@gmail.com It will make a error if i using the

Re: [Rails] Re: Textastic or Koder?

2011-07-05 Thread Rodrigo Ruiz
And I use Textmate on my mac, so I'd like a similar one for the iPad Thank you, Rodrigo On Tue, Jul 5, 2011 at 1:17 PM, Rodrigo Ruiz rodrigo.ru...@gmail.comwrote: Sorry, I forgot to say, I want it for iPad On Tue, Jul 5, 2011 at 10:05 AM, Javix s.camb...@gmail.com wrote: Koders (and not

[Rails] Re: Problem with special characters and CSV upload

2011-07-05 Thread Sebastian
Hi, I find partly a solution. I just use this code: file = params[:file].tempfile content = file.read.force_encoding(UTF-8) content.gsub!(\xEF\xBB\xBF.force_encoding(UTF-8), '') @csv = CSV.new(content, {:headers = false, :col_sep = ;}) I found it here:

[Rails] how to pass validation error message to another page?

2011-07-05 Thread shrimpy
I have a form under user controller And i have another controller call my_account, i render the _form inside the index page of my_account. to allow user to update their user information. So when user click update, update method in UserController will be invoked. My question is, if faild to

[Rails] Problem of rake spec

2011-07-05 Thread Yennie
Hi all, I am a bit confused when i type rake spec and it gives me this message, No examples matching ./spec/**/*_spec.rb could be found what is that mean that something is not found. and where i can input my the test code because i did have a tiny sample code in user_controller_test.rb. is that

Re: [Rails] Problem of rake spec

2011-07-05 Thread Martin Wawrusch
your file needs to be named user_controller_spec.rb the _spec.rb is important On Tue, Jul 5, 2011 at 9:03 AM, Yennie joanne0...@gmail.com wrote: Hi all, I am a bit confused when i type rake spec and it gives me this message, No examples matching ./spec/**/*_spec.rb could be found what is

Re: [Rails] ruby script/server giving error

2011-07-05 Thread Rafal Zdziech
Hi, The easiest way would be install rvm and then update Ruby and rails to newest version that would safe you a headache :). You may want to use the passenger later on as web server for Rails. On Jul 5, 2011 7:52 AM, Amrit Pal Pathak amritpalpath...@gmail.com wrote: On Tue, Jul 5, 2011 at

[Rails] Re: Problem of rake spec

2011-07-05 Thread Yennie
Hi Martin, When i rename the user_controller_test.rb = user_controller_spec.rb it gives me this error yen@ubuntu:~/Desktop/Pictographs$ rake (in /home/yen/Desktop/Pictographs) /usr/local/bin/ruby -S bundle exec rspec ./spec/functional/ languages_controller_spec.rb

Re: [Rails] Re: Problem of rake spec

2011-07-05 Thread Martin Wawrusch
check if you have gem 'mongoid-rspec' in your Gemfile. Should be part of the test group. On Tue, Jul 5, 2011 at 9:20 AM, Yennie joanne0...@gmail.com wrote: Hi Martin, When i rename the user_controller_test.rb = user_controller_spec.rb it gives me this error

[Rails] Re: Problem of rake spec

2011-07-05 Thread Yennie
On Jul 5, 12:24 pm, Martin Wawrusch mar...@wawrusch.com wrote: check if you have gem 'mongoid-rspec' I did install it already, but i try rake spec, and the version is mongoid (2.0.2) mongoid-rspec (1.4.4) It still gives me the same message yen@ubuntu:~/Desktop/Pictographs$ rake (in

[Rails] Error of rake (rake spec)

2011-07-05 Thread Yennie
Hi, I have a problem when i type rake or rake spec to test my file it asks me to install the extension and check the version of bson and mongo Using mongo (1.3.1) Using bson (1.3.1) but i have no idea where my load path is. so that i cannot make sure is bson_ext is in my load path or not

[Rails] Active Record track changes with update_attributes

2011-07-05 Thread Owain
I am not sure I am thinking about this the correct way. I have a admin/maintenance scaffold to amend live data and I need to track the changes to data related to an order. e.g. change of address. I have a order_transaction model which I would like to record all of the data changes through the

[Rails] USPS Labels from Webapp

2011-07-05 Thread Ylan
Hey everyone, I have a requirement to integrate with the USPS to purchase shipping labels (priority mail and express mail). So, I have seen a few gems that deal with shipping but don't have USPS support (shippinglogic) or have USPS support but just for rate calculation and tracking, not label

[Rails] Re: three RoR pos, paying $200k for top talent

2011-07-05 Thread Katy Harrison
Remote is not available at this time. Thanks. Where are you located? They will cover part of relocation, but not sponsorship. Thanks, katy H. On Fri, Jul 1, 2011 at 11:41 AM, Katy H. katyharriso...@gmail.com wrote: Hi. I have three PERM Ruby positions, willing to pay up to $200k for top

[Rails] How to implement a schedule of recurring events?

2011-07-05 Thread Andrew
Hello, I am fairly new to Ruby and Ruby on Rails. I am creating an application that has many :groups, each with their own schedule of events. This is a little different than a calendar of events, since these events recur every week and do not have a specific date. So for example, I need to

[Rails] Re: Active Record track changes with update_attributes

2011-07-05 Thread Frederick Cheung
On Jul 5, 7:12 pm, Owain owain.mcgu...@gmail.com wrote: I am not sure I am thinking about this the correct way.  I have a admin/maintenance scaffold to amend live data and I need to track the changes to data related to an order.  e.g. change of address.  I have a order_transaction model

Re: [Rails] How to implement a schedule of recurring events?

2011-07-05 Thread Gustavo de Sá Carvalho Honorato
Take a look: https://github.com/jmettraux/rufus-scheduler On Tue, Jul 5, 2011 at 4:19 PM, Andrew misbehav...@gmail.com wrote: Hello, I am fairly new to Ruby and Ruby on Rails. I am creating an application that has many :groups, each with their own schedule of events. This is a little

Re: [Rails] 3.1RC4 or 3.2

2011-07-05 Thread Conrad Taylor
Sent from my iPad On Jul 5, 2011, at 2:40 AM, itsterry itste...@gmail.com wrote: Just a quickie... I'm seeing Rails 3.2 Beta already on Github, though 3.1 is still at RC4. Is the plan still to release 3.1 or are we skipping straight to 3.2? Forgive me if it's a dumb question: it's

[Rails] Re: 3.1RC4 or 3.2

2011-07-05 Thread itsterry
Thanks Conrad, that helps. I'll use 3.1rc for the production app I'm about to start Cheers! Terry On Jul 5, 9:55 pm, Conrad Taylor conra...@gmail.com wrote: Sent from my iPad On Jul 5, 2011, at 2:40 AM, itsterry itste...@gmail.com wrote: Just a quickie... I'm seeing Rails 3.2 Beta

Re: [Rails] How to implement a schedule of recurring events?

2011-07-05 Thread Leoncio Caminha
the whenever gem is also me! take a look into github Em 05/07/2011, às 16:19, Andrew escreveu: Hello, I am fairly new to Ruby and Ruby on Rails. I am creating an application that has many :groups, each with their own schedule of events. This is a little different than a calendar of events,

[Rails] Coffee script not working on Rails 3.1.rc4

2011-07-05 Thread Gustavo de Sá Carvalho Honorato
Hi, I've just created a Rails application using the following commands: $ rails new rails_test -d mysql $ cd rails_test/ $ rake db:create $ rails g scaffold user name:string age:integer $ rake db:migrate When I start the webserver and try to access http://localhost:3000/users I got the

Re: [Rails] Re: Active Record track changes with update_attributes

2011-07-05 Thread Philip Hallstrom
On Jul 5, 7:12 pm, Owain owain.mcgu...@gmail.com wrote: I am not sure I am thinking about this the correct way. I have a admin/maintenance scaffold to amend live data and I need to track the changes to data related to an order. e.g. change of address. I have a order_transaction model which

[Rails] Re: when to add validations to database

2011-07-05 Thread Milan Dobrota
Pretty much any custom validation querying the database is a suspect. Milan Dobrota rubylove.info -- 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

[Rails] Re: Why does rendered.should have_field pass when it shouldn't?

2011-07-05 Thread David Zhang
Maybe this question is a little to wordy, so I'll just ask this: Could someone just tell me if it shows the name text field do render rendered.should have_field(:name) end ...checks for both the label and the text field? How come when I have ONE text field in my view, all

[Rails] Re: Coffee script not working on Rails 3.1.rc4

2011-07-05 Thread David Zhang
I'm using Rails 3.1.rc4 with ruby 1.9.2, and I just made a new app to test this out. I ran your exact commands, except I used the standard sqlite3 development db. I did not get any errors - the scaffold worked fine, and so does creating users. Maybe it's an SQL development database issue -

[Rails] Using Capybara to select from a collection_select call (select tag)

2011-07-05 Thread David Zhang
I'm trying to use Capybara to test this. I have a step that goes When I select Price Chopper from Organization And the step definition is When /^(?:|I )select (.+) from (.+)$/ do |value, field| select(value, :from = field) end For some reason, I keep getting the error:

[Rails] Re: How to implement a schedule of recurring events?

2011-07-05 Thread Andrew
Take a look:https://github.com/jmettraux/rufus-scheduler Thanks, but I don't think that gem will help me any: rufus-scheduler is a Ruby gem for scheduling pieces of code (jobs) I'm trying to display a schedule of events, not schedule a script to be run. -- You received this message because

[Rails] Re: How to implement a schedule of recurring events?

2011-07-05 Thread Andrew
the whenever gem is also me! take a look into github Whenever is a Ruby gem that provides a clear syntax for writing and deploying cron jobs. Like I said before, I am not trying to schedule a cron job, I am trying to display a schedule of events. -- You received this message because you are

Re: [Rails] 3.1RC4 or 3.2

2011-07-05 Thread Santiago Pastorino
Let me fix this a bit ... Rails 2.3.x : NOT maintained anymore. security or severe bugs only. branch 2-3-stable. Rails 3.0.x : Maintenance only. New features are not allowed. branch 3-0-stable. Rails 3.1.x : Release candidate, feature complete. New features are not allowed. branch 3-1-stable.

Re: [Rails] when use mongoid , Model.count can't work.

2011-07-05 Thread 刘阳
cc Hi,Rafal ,your advice really helped me.I deleted the mongo ,1.1.3 in my Gemfile.it works.Thank u very much. 2011/7/4 Rafal Zdziech rzdzi...@gmail.com Hi mate, I can only advise you to update Ruby to 1.9.2 and rails to 3.0.9. You should have a look into rvm updater. You may want to try

[Rails] Problem of rake spec

2011-07-05 Thread Yennie
Hi, I use rake spec to run file user_controller_spec but it seems nothing happed can anyone help me to solve the problem yennie@ubuntu:~/Desktop/Picto$ rake spec (in /home/joanne/Desktop/Picto) Test file Picto/spec/user_controller_spec.rb require spec_helper describe User do before

[Rails] Rails 3 find where

2011-07-05 Thread Rajeev Kannav Sharma
i have to fine those article which have state id 3 OR 4 and skill_id = params[:browsed_by_skill] @articles= Article.find(:all,:conditions = [state = ? AND skill_id = ? , ['3', '4'], params[:browsed_by_skill]]) Getting error this Mysql::Error: Operand should contain 1 column(s):

[Rails] Re: Rails 3 find where

2011-07-05 Thread Rajeev Kannav Sharma
solved @articles= Article.find(:all,:conditions = [state in (?) AND skill_id = ? , ['3', '4'], params[:browsed_by_skill]]) Thanks -- 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