[Rails] Re: Beginner's:Return database records in ruby

2012-06-04 Thread cyber c.
Thanks for the reply. But i have changed the message along back but it still shows old message. My actual post was How do we deal with database records in ruby? I wanted to return a list of records from a model func to controller. Please help me. -- Posted via http://www.ruby-forum.com/. -- Yo

Re: [Rails] Beginner's:Problem with populating database

2012-06-04 Thread Jeremy Walker
On 5 June 2012 01:02, cyber c. wrote: > Hi, > > I wanted to populate the DB with (name,data) pairs based on some rules. > I have created a scaffold with name and data as attributes. In the > controller file under the def for index, i have changed the line > @data_pairs = DataPair.all to > @data_p

[Rails] Beginner's:Problem with populating database

2012-06-04 Thread cyber c.
Hi, I wanted to populate the DB with (name,data) pairs based on some rules. I have created a scaffold with name and data as attributes. In the controller file under the def for index, i have changed the line @data_pairs = DataPair.all to @data_pairs = DataPair.get_all_pairs and in the correspondi

Re: [Rails] Re: How to upload a video in ruby on rails

2012-06-04 Thread Loganathan Sellapa
Checkout any of these below for video upload. http://openrails.blogspot.in/2011/03/upload-videos-in-rails-using-floplayer.html https://rubygems.org/gems/paperclip-ffmpeg http://railscasts.com/episodes/134-paperclip regards, Loganathan ViewMe On Mon, Jun 4,

Re: [Rails] Re: Rails Step by Step Tutorial for ubuntu

2012-06-04 Thread Jeremy Walker
On 4 June 2012 21:32, Code Man wrote: > Hello Jeremy, > > before anything thanks for da reply, > > What I want is to start developing a website on Rails, nothing else, I > wanted to use mysql because it what my hosting provides, so the question > is what you recommend me to develop? Is it Apache

Re: [Rails] Problem with webrick

2012-06-04 Thread Hassan Schroeder
On Mon, Jun 4, 2012 at 1:00 PM, Code Man wrote: > I am using Ubuntu with Ruby on Rails and developing in Eclipse with the > aptana radrails plugin, I got everything set up ruby, rails, rubygems, > all of it > And it seems to be a 500 error, the address I put on the browser I have no idea what t

[Rails] Re: Rails Step by Step Tutorial for ubuntu

2012-06-04 Thread Code Man
Hello Jeremy, before anything thanks for da reply, What I want is to start developing a website on Rails, nothing else, I wanted to use mysql because it what my hosting provides, so the question is what you recommend me to develop? Is it Apache + mysql + Rails? or what? Cheers! -- Posted v

Re: [Rails] Rails Step by Step Tutorial for ubuntu

2012-06-04 Thread Evan Misshula
Installation_Ruby-on-Rails_for_Ubuntu-Linux-Mint_www-mirceagoia-com.pdf This is what I used. I was able to get it done. I ran into a problem and I just needed to uninstall and reinstall the gems. Good luck! Best, Evan Misshula On Mon, Jun 4, 2012 at 4:18 PM, Jeremy Walker wrote: > > > On 4 J

Re: [Rails] Rails Step by Step Tutorial for ubuntu

2012-06-04 Thread Jeremy Walker
On 4 June 2012 21:05, Code Man wrote: > Hello, > > I was wondering if anyone knows of a good step by step tutorial to > install Apache + Mysql + PHPmyadmin + Ruby + Rails or any other web > server to develop in rails in Ubuntu (Linux), I been to trying to > install it but it is very hard because

[Rails] Rails Step by Step Tutorial for ubuntu

2012-06-04 Thread Code Man
Hello, I was wondering if anyone knows of a good step by step tutorial to install Apache + Mysql + PHPmyadmin + Ruby + Rails or any other web server to develop in rails in Ubuntu (Linux), I been to trying to install it but it is very hard because there is always something that goes wrong since the

[Rails] Problem with webrick

2012-06-04 Thread Code Man
Hello, I am using Ubuntu with Ruby on Rails and developing in Eclipse with the aptana radrails plugin, I got everything set up ruby, rails, rubygems, all of it the problem is with webrick, When I create a new App and create a new controller and in the new controller I create a new view, the probl

Re: [Rails] Why can't I just do "RUBY_VERSION = 1.9.3" in config/environment.rb ?

2012-06-04 Thread Philip Rhoades
Jason, On 2012-06-05 04:53, Jason Fleetwood-Boldt wrote: Phillip, this problem has already been solved: use RVM. Create a file called ".rvmrc" and put it into the root directory of your project, like this: rvm use 1.9.2-p290 Whenever you switch into that project (in your terminal) RVM will au

Re: [Rails] Why can't I just do "RUBY_VERSION = 1.9.3" in config/environment.rb ?

2012-06-04 Thread Jason Fleetwood-Boldt
Phillip, this problem has already been solved: use RVM. Create a file called ".rvmrc" and put it into the root directory of your project, like this: rvm use 1.9.2-p290 Whenever you switch into that project (in your terminal) RVM will automatically switch ruby versions. To get your server to re

[Rails] Why can't I just do "RUBY_VERSION = 1.9.3" in config/environment.rb ?

2012-06-04 Thread Philip Rhoades
People, Most of my Rails apps are using Ruby v1.8.7 but I need to start using Ruby v1.9.3 for one app in particular and to start learning Rails 3.2. It seems if I could install Ruby v1.9.3 side by side with v1.8.7 on my Fedora 16 x86_64 server, I should be able to have something like this:

[Rails] Re: How to save the user_id in a separate column when using ActiveRecord::SessionStore?

2012-06-04 Thread Nuno L.
As a work around I'm now saving user_id and session_id's in a separate table. I couln't find a way to write to the sessions table! -- 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 thi

[Rails] Re: bundle install results in "Symbol not found: _SSL_SESSION_free (LoadError)"

2012-06-04 Thread Joshua Muheim
By the way, I have the latest 3.2.6 XCode installed (I'm using Snow Leopard). -- 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-talk@googlegroups.

[Rails] bundle install results in "Symbol not found: _SSL_SESSION_free (LoadError)"

2012-06-04 Thread Joshua Muheim
Hey everybody I just installed RVM. I never had any issues with my OSX's default Ruby 1.8.7, but for a project I want to work on I need a newer version, specifically 1.9.3-p0. So I installed it. Sadly, when doing rails new bla I get the following error (right after bundle install is run): /Use

[Rails] Re: How to upload a video in ruby on rails

2012-06-04 Thread kwiest
I've never used Panda, but I've built an app to upload and encode videos. I used rails 2.3.x, the Paperclip gem, and ffmpeg, and it's all very straight-forward. I have since upgraded to rails 3, upload straight to Amazon, and encode with Zencoder (http://zencoder.com/) My source is available at:

[Rails] Re: Re: validation not called on create, only update

2012-06-04 Thread Martyn W.
Martyn W. wrote in post #1063043: > Michael Pavling wrote in post #1062778: >> On 1 June 2012 04:31, flaps wrote: >>> THanks for your response. The validation methods are not called on a >>> create, allowing the save method to be called, unprotected. I dont >>> want the save to be called let alone

[Rails] Re: Re: validation not called on create, only update

2012-06-04 Thread Martyn W.
Michael Pavling wrote in post #1062778: > On 1 June 2012 04:31, flaps wrote: >> THanks for your response. The validation methods are not called on a >> create, allowing the save method to be called, unprotected. I dont >> want the save to be called let alone fail. > > Is there any chance you could

Re: [Rails] sending email with mail gem in rails3

2012-06-04 Thread amruby
On Monday, 4 June 2012 09:40:52 UTC-4, Pedro Medeiros wrote: > > can you post the role stack fo errors please. > > At first everything seems ok. I'm gessing that maybe just some > configuration error. > > If you can't resolve with that gem the ActionMailer gem doesn't solve your > problem? Ther

[Rails] Re: Biometric Device Installation

2012-06-04 Thread Richard Campbell
ashutosh verma wrote in post #1062681: > I am using Project fedena for School > Management > software a ROR application. i want to attach a biometric device for > students & employee attendance , any one can suggest me how i can do it. You can use a keyboard wedge appl

[Rails] `establish_connection' undefined error

2012-06-04 Thread Shalini Sah
Hi, Whenever I run rake db:schema:dump i get the following error rake aborted! undefined local variable or method `establish_connection' for ActiveRecord::Base:Class Please help me in this regard. My database is oracle. -- You received this message because you are subscribed to the Google G

[Rails] NoMethodError: undefined method `scoped' for Model:Class

2012-06-04 Thread DHAMODHARAN N
Hi Guys, I have model called CardAuthorization its perfectly working in development and production environments but not working in test environment, other models also working fine. class CardAuthorization < ActiveRecord::Base belongs_to :line_item_collection belongs_to :user end *Error:*

Re: [Rails] sending email with mail gem in rails3

2012-06-04 Thread pe medeiros
can you post the role stack fo errors please. At first everything seems ok. I'm gessing that maybe just some configuration error. If you can't resolve with that gem the ActionMailer gem doesn't solve your problem? There is a good documentation of the ActionMailer here http://guides.rubyonrails.or

[Rails] How to save the user_id in a separate column when using ActiveRecord::SessionStore?

2012-06-04 Thread Nuno L.
Hi! I'm converting my Rails 3.1 app from cookie sessions to database sessions. I've added an extra column on the sessions table to save the user_id. I read the documentation in http://apidock.com/rails/v3.1.0/ActiveRecord/SessionStore and googled but can't seem to find a way to set the session's

Re: [Rails] Regrading Biometric

2012-06-04 Thread Walter Lee Davis
On Jun 4, 2012, at 2:28 AM, ROHINI KAMBDE wrote: > the exact requirement is that we want integrate finger print reader into the > rails application .can anyone please help us for integrating this into our > project . > > -- > You received this message because you are subscribed to the Google

Re: [Rails] Capybara?

2012-06-04 Thread thiagocifani
Maybe the link below could help you! regards https://github.com/jnicklas/capybara 2012/6/4 mike > Does anyone know of a place that has a Capybara tutorial or some > documentation? I can't seem to find it anywhere. > > thanks, > mike > > -- > You received this message because you are subscribe

[Rails] Re: How to upload a video in ruby on rails

2012-06-04 Thread saritha chakilala
i want to upload a video to save in my database (mysql) and play it later time when i was click on the play button. can any one post the code using panda how to upload a video clip. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google

Re: [Rails] [JOBS] [Russia, Moscow] RoR Major Developer

2012-06-04 Thread Gintautas Šimkus
I didn't want to sound mean. Just wondering why you chose such presentation for the ad? I mean there could be 200 other languages here, but would you be OK receiving messages that you can't read, in, let's say, 50 tongues, which for me doesn't seem unreasonable. -- You received this message becau

[Rails] Capybara?

2012-06-04 Thread mike
Does anyone know of a place that has a Capybara tutorial or some documentation? I can't seem to find it anywhere. thanks, mike -- 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.goo

Re: [Rails] [JOBS] [Russia, Moscow] RoR Major Developer

2012-06-04 Thread Gintautas Šimkus
My basic Russian language skills told me you were not putting up Russian language as a requirement. So why then do you write your ad in Russian? Or are you trying to tell it this way, without making message readable by most, in an international, English language based mailing list? Show some respe

[Rails] [JOBS] [Russia, Moscow] RoR Major Developer

2012-06-04 Thread Oleg Shilov
Маленькой и веселой it-компании, требуется *Ruby on Rails Major Developer*. С нас: дружный коллектив, возможность решать интересные задачи, достойная оплата. От тебя: амбиции, желание работать и развиваться. Оклад от 4 до 8 и зависит от личных качеств и навыков. Индивидуальный, гибкий гр

[Rails] [ANN] Wettpool - Open Source Sports Betting Pool Ready for Euro 2012 (in Rails 3.2+)

2012-06-04 Thread Gerald Bauer
Hello, In less than a week the European Football Championship (aka Euro 2012) kicks off. For more fun I've created a free, open source sports betting pool in Ruby on Rails. Also works for the Champions League or other tournaments. For more info (Sources, Demo, etc.) see @ https://github.com/g

Re: [Rails] How to upload a video in ruby on rails

2012-06-04 Thread Loganathan Sellapa
Hi Saritha, Checkout this http://www.pandastream.com/docs/. regards, Loganathan ViewMe On Mon, Jun 4, 2012 at 2:01 PM, saritha chakilala wrote: > Can any one halp? how to upload a video in ruby on rails (ruby 1.8.7 and > rails-2.3.8) > > -- > Posted via http

[Rails] Re: validation not called on create, only update

2012-06-04 Thread Frederick Cheung
On Jun 3, 4:30 am, dasibre wrote: > I have a model, Work, that when I create a new instance with > incorrect Why not post your controller code as several people have asked rather than reposting your original question. Fred > field data does not call the validation methods. When I update an

Re: [Rails] sending email with mail gem in rails3

2012-06-04 Thread amruby
On Monday, 4 June 2012 04:36:33 UTC-4, Norbert Melzer wrote: > > I dont know about that gem, but I dont see anything like mail.send! Look > into the docs and look up which function you have to call for sending the > message. > yes i have edited the code like this * mail = Mail.new do* * fr

Re: [Rails] How to upload a video in ruby on rails

2012-06-04 Thread Norbert Melzer
Do you want to upload a video from your clients browser to your RoR instance or do you want to upload a video from your RoR instance to another server? Depending on your plans there are different answers to your question... Am 04.06.2012 10:31 schrieb "saritha chakilala" : > Can any one halp? how

Re: [Rails] sending email with mail gem in rails3

2012-06-04 Thread Norbert Melzer
I dont know about that gem, but I dont see anything like mail.send! Look into the docs and look up which function you have to call for sending the message. Am 04.06.2012 10:02 schrieb "amruby" : > I have used this code for sending mail, but i didn't get the mail from this > > *require 'rubygems'*

[Rails] How to upload a video in ruby on rails

2012-06-04 Thread saritha chakilala
Can any one halp? how to upload a video in ruby on rails (ruby 1.8.7 and rails-2.3.8) -- 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-talk@google

[Rails] Design a scheduler on top of delayed_job

2012-06-04 Thread karthik selvakumar bhuvaneswaran
Hi , I am writing a scheduler with delayed_job as job processor. I have a doubt whether I should run scheduler on top of delayed_job or can I add the scheduler code on Worker.start method of delayed Job. I want scheduler in separate thread and delayed job execution in separate thread so that

[Rails] sending email with mail gem in rails3

2012-06-04 Thread amruby
I have used this code for sending mail, but i didn't get the mail from this *require 'rubygems'* *require 'mail'* * * * * * mail = Mail.new* * mail['from'] = 'm...@mofobi.com'* * mail[:to]= @business.email* * mail.subject = 'This is a test email'* * puts "..#{mail.to_s}"* After this code