Re: [Rails] Accessing results of retrieve where

2014-01-30 Thread Colin Law
On 30 January 2014 03:30, tamouse pontiki tamouse.li...@gmail.com wrote: On Wed, Jan 29, 2014 at 9:13 PM, Dave Castellano li...@ruby-forum.com wrote: Hi, I am searching for a record using where: @profile = Profile.where(:user_id = current_user.id) This returns: = [#Profile id: 6,

[Rails] error after removing # from routes.tb file

2014-01-30 Thread Badal Rooprai
i am new to ROR. currently studying getting started with rails http://guides.rubyonrails.org/getting_started.html i am getting execjs: runtime errorafter removing # from routes.tb file. root line initially was like # root 'welcome#index'and it was working fine as expected on localhost:3000 but

Re: [Rails] error after removing # from routes.tb file

2014-01-30 Thread Marco Antonio Almeida
Hi Badal, Have you tried installing the gem 'therubyracer'? Put the line: gem 'therubyracer' in your Gemfile and execute bundle install on your console. Restart the server and try again. Best regards, *Marco Antonio Almeida*+45 31 65 28 84 Twitter: @marcoafilho

[Rails] Re: Trouble with RVM permissions when executing a command line 'bundle install'

2014-01-30 Thread Frederick Cheung
On Thursday, January 30, 2014 5:41:59 AM UTC, Eric Jefcoat wrote: ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions into the /usr/local/rvm/gems/ruby-1.9.3-p392 directory. That looks like a systemwide install of rvm - normally the rvm folder is

[Rails] Re: Trouble with RVM permissions when executing a command line 'bundle install'

2014-01-30 Thread Eric Jefcoat
Fred, How do I go about removing rvm? I don't remember setting up a root user password on my computer, When I search Spotlight for rvm, I get some other gem and ruby folders it looks like, but not something named rvm. Thanks for your help, Eric On Thursday, January 30, 2014 3:08:16 AM UTC-7,

[Rails] Re: Trouble with RVM permissions when executing a command line 'bundle install'

2014-01-30 Thread Michał Papis
You have two options: 1) fix the permissions: - make sure you are in rvm group, run id and there should be group rvm - if it is not there run: rvm group add rvm $USER - make sure that rvm is up to date and has properly set permissions: rvm get stable; rvm fix-permissions - restart your

[Rails] Bind two pages by form_tag

2014-01-30 Thread Marie Bellec
Hello ! I try to bind two pages together, a page which serves to make a research and a page which posts the result of the research. Here are two pages that I want to bind together : http://zupimages.net/up/14/05/0efm.png (Index) http://zupimages.net/up/14/05/901g.png (Show) And here is

[Rails] Re: Trouble with RVM permissions when executing a command line 'bundle install'

2014-01-30 Thread Frederick Cheung
On Thursday, January 30, 2014 10:56:04 AM UTC, Eric Jefcoat wrote: Fred, How do I go about removing rvm? I don't remember setting up a root user password on my computer, When I search Spotlight for rvm, I get some other gem and ruby folders it looks like, but not something named rvm.

[Rails] run rake task inside rails application

2014-01-30 Thread kingston.s
Hi all, I want to run asset precompile task inside the rails application,As I had many dependencies who will change the code,in that case all the time whenever they change i need to run the script as I cant give server access to them so I am providing the GUI for them from that they alone

[Rails] Re: Rails and capybara tasks

2014-01-30 Thread andreo
Hey, what is your rails, rspec and capybara version? all the best, Andre -- 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

[Rails] Contractor's needed for Ruby on Rails Developer Roles

2014-01-30 Thread Frank Boyle
All: I have on-site Ruby Development jobs in McLean, VA. 1-2 year assignment. Need to be 1-2 years working knowledge with Ruby. Strong coding background. Rspec a plus. If interested in learning more, please email me back at: fbo...@employ-r.com 703-714-0700 Thanks, Frank Boyle -- You

[Rails] JOBS: Looking for Ruby on Rails Developers

2014-01-30 Thread simon . aikon
Hello, Hope you are doing well, We are looking for 10 ruby on rails Developers . Let me know if you have any consultants available. *Sr. Lead Ruby and Rail Developer* *Location: San Francisco, CA* *Duration: Long Term* *Skills:* *- Ruby on Rails, LDAP* *- Postgre SQL* *- NoSQL Database

[Rails] Re: Rails and capybara tasks

2014-01-30 Thread Arun kant sharma
rails 4.0.2 rspec 2.14.1 capybara 2.2.1 when I put tests in spec/requests dir, I get this error: undefined method `visit' for #RSpec::Core::ExampleGroup::Nested_5::Nested_1:0x0004ffe3b8 On Thursday, 30 January 2014 20:29:50 UTC+5:30, and...@benjamin.dk wrote: Hey, what is your rails,

[Rails] Not able to save PDF Kit file to a Paperclip attachment in Rails 3.2.15

2014-01-30 Thread Ankur Kumar
I am trying to save a pdf file (generated using Rails PDFKit gem) to a paperclip attachment. The MySQL table entry shows following for the paperclip attachment after saving the generated PDF file: *MySQL table record:* * id | resume_type | resume_attachment_file_name |

[Rails] Re: Trouble with RVM permissions when executing a command line 'bundle install'

2014-01-30 Thread Eric Jefcoat
Michael, Thank you for helping. I followed your directions to fix the permissions, and I was able to run the bundle install, without errors! You are the man!! Thank you so much! Eric computer:crumblr admin$ rails server

[Rails] How can I customize this render json output?

2014-01-30 Thread Duane Morin
I've got a big problem. I've got some code doing a REST API, outputting JSON, that works fine and hasn't been touched in like 9 months. I've also got a client out there in the wild that I can't touch, so I can't muck with the API at all. However in a recent bugfix update Ive discovered that

Re: [Rails] Bind two pages by form_tag

2014-01-30 Thread Antônio Augusto Sousa Britto
could you provide the counters_controller.rb code? Seems that your variable raw_counter is not set properly... 2014-01-30 Marie Bellec mariejbel...@gmail.com Hello ! I try to bind two pages together, a page which serves to make a research and a page which posts the result of the research.

[Rails] Can two Rails versions use one database?

2014-01-30 Thread Russ S
I'm working on a Rails 1 application. We'd like to upgrade it to Rails 3 or 4, but Rails 1 is so old that we think it would take a total rewrite to upgrade. There are management and budget issues with a total rewrite. We wouldn't be able to deliver anything until the entire rewritten

[Rails] Can two Rails versions use one database?

2014-01-30 Thread Russ Silva
I'm working on a Rails 1 application. We'd like to upgrade it to Rails 3 or 4, but Rails 1 is so old that we think it would take a total rewrite to upgrade. There are management and budget issues with a total rewrite. We wouldn't be able to deliver anything until the entire rewritten application

Re: [Rails] Can two Rails versions use one database?

2014-01-30 Thread Walter Lee Davis
You may want to watch this talk, from last year's Railsconf. https://www.youtube.com/watch?v=xi7z-vGNNGw Now this isn't moving quite as far as you want to go, but it still might be instructional. Walter On Jan 30, 2014, at 4:13 PM, Russ S wrote: I'm working on a Rails 1 application. We'd

[Rails] Re: Accessing results of retrieve where

2014-01-30 Thread Dave Castellano
Thanks!! Dave -- 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.

[Rails] Re: Not able to save PDF Kit file to a Paperclip attachment in Rails 3.2.15

2014-01-30 Thread Ankur Kumar
The problem is solved. I forgot to add following in model: has_attached_file :resume_attachment In addition, I looked at thishttp://stackoverflow.com/questions/1397461/how-to-set-file-programmatically-using-paperclipreference and saved the file in paperclip through File class

Re: [Rails] Newrelic doesn't log in daemon mode

2014-01-30 Thread Avi
Its working fine now. We have changed from thin to nginx + passenger. Thanks for helping. On Wednesday, January 29, 2014 9:41:45 PM UTC+5:30, Hassan Schroeder wrote: On Wed, Jan 29, 2014 at 6:55 AM, Avi aavinas...@gmail.com javascript: wrote: I am using Thin server in production. Ruby

[Rails] God with nginx+passenger

2014-01-30 Thread Avi
Hello All, I am trying to integrate god with nginx+passenger. Rails 3.2.8, Ruby 1.9.3 I am not getting the exact process how to integrate it. Should I create a .god file inside config in our project or outside project? How can I link this to the servers? Thanks, Avi -- You received this