Re: [Rails] Help getting started: Newbie: Windows and Rails

2012-09-01 Thread Colin Law
On 1 September 2012 06:06, Bruce Whealton br...@whealton.info wrote: Colin, You had referred me to this link: For installing in ubuntu then http://blog.sudobits.com/2012/05/02/how-to-install-ruby-on-rails-in-ubuntu-12-04-lts/ is pretty good.. I thought it would be a good idea to learn

Re: [Rails] Basic Paypal

2012-09-01 Thread Colin Law
On 1 September 2012 06:43, Khan emailtosameenak...@gmail.com wrote: Hi all i am following this like for basic paypal http://railscasts.com/episodes/141-paypal-basics and i got this error View: %= link_to Checkout, @cart.paypal_url() % undefined method `paypal_url' for nil:NilClass That

[Rails] Getting Started with Rails - tutorial problem

2012-09-01 Thread noodlecz
Hi I m trying to do my first aplication in rails. I use oficial tutorial http://guides.rubyonrails.cz/#hello-world-v-rails and I have a problem with one of steps. When I executed *$ rake db:create* (or only *rake*), I got an erorr: Could not find coffee-script-source-1.3.3 in any of the sources

[Rails] Re: New to RoR: Need some assistance displaying data from multiple tables.

2012-09-01 Thread Thomas Chen
It looks like you have a pretty classic has_many through kind of relationship. I don't know the details of your model, but I'd assume you have the following 3 models: User: id TaskRelationship user_id task_id Task id What you want to do, then is to put in your user model the following

Re: [Rails] Is it a good idea for me to learn Ruby on Rails?

2012-09-01 Thread Michael Pavling
On 30 August 2012 13:33, Peter Hickman peterhickman...@googlemail.com wrote: For someone who says that they have very little programing knowlege you seem to have your mind already made up. Why did you even come here and ask your question if you already know the answer? So young, so set in

Re: [Rails] Ruby problem solving Skills

2012-09-01 Thread D Y
the koans are a very cool idea and many people recommend it. however, i went through the koans early in my ruby days and didn't feel like i learned much. or i guess a more accurate description is - the stuff i learned didn't stick with me for very long. maybe it just didn't fit my learning style

Re: [Rails] Basic Paypal

2012-09-01 Thread Gintautas Šimkus
Hey, you got to set @cart in your controller. That's what the error is saying: nil.paypal_url. 2012/9/1 Khan emailtosameenak...@gmail.com Hi all i am following this like for basic paypal http://railscasts.com/episodes/141-paypal-basics and i got this error View: %= link_to Checkout,

[Rails] Adding validations to devise signup form

2012-09-01 Thread rordev
Hi, How to add validations to devise signup form,any help will be appreciated,thanks in advance. -- 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

[Rails] Beginner

2012-09-01 Thread Bala Ramachandran
I am someone with no programming experience. 1. What is the best way for me to learn Ruby on Rails 2. How long will it take? 3. What is the back end database that Ruby uses. 4. Are there any components that need to be bought out? Thanks -- You received this message because you are

Re: [Rails] index.html in rails-app/public

2012-09-01 Thread jason white
for your first app, you should try using heroku. it it much simpler to get an app up and running than the current path you are taking. Jason On Wed, Aug 29, 2012 at 1:37 PM, Mandeep Kaur meghasi...@gmail.com wrote: On Wed, Aug 29, 2012 at 8:16 PM, Mandeep Kaur meghasi...@gmail.com wrote: On

[Rails] Re: Ruby problem solving Skills

2012-09-01 Thread Daniel
my favorite is puzzlenode.com. the problems there are a bit harder but very interesting. http://rubyquiz.com/ is maybe the most popular one easier problems can be found at http://ruby-challenge.rubylearning.org/ On Wednesday, August 29, 2012 12:53:26 PM UTC+8, thil wrote: Hi , Is there

[Rails] Multi-level hierarchy selections

2012-09-01 Thread Christopher R. Maden
I’m not sure what the best subject line for this is... I am trying to understand more about what parts of Rails have access to what information. I have one type (Interest) organized into a self-referential hierarchy. A user can select any leaf node in that hierarchy. This is working fine. I

Re: [Rails] Basic Paypal

2012-09-01 Thread Marcelo de Moraes Serpa
Putting aside the fact that you didn't give enough information about to diagnose the problem, I'll only answer because it's obvious. The answer to your question lies in the origins of the @cart instance variable. It's not defined automagically; you should define it in the controller, and you are

[Rails] PayPal Integration

2012-09-01 Thread keerthi priya
Hi i was following this link http://www.funonrails.com/search?q=paypalimageField.x=0imageField.y=0max-results=10 for PayPal integration in the process i got this error undefined local variable or method `pay_bill_url' for ##Class:0x927b3f8:0x92794b8 View Name:create %= form_for @payment ||=

[Rails] Wierd encoding problem

2012-09-01 Thread Martin Klepsch
I put the complete error description into a gist (https://gist.github.com/5d2cef1414f1643fca5a) for better readability. The basic problem is that a properly encoded Json post request gets decoded an a very weird way. For example a ü which is encoded as \u00fc in uft-8 becomes \x93 or ~\xD4. I

[Rails] [Whenever gem]What is the reason that linux's cron can't automatic running?

2012-09-01 Thread Jingqiang Zhang
OS : Ubuntu 12.04 Now I use Backup https://github.com/meskyanichi/backup and Wheneverhttps://github.com/javan/whenever gem to backup my database. When I run backup perform -t my_backup ,I can works. But when I check the task crontab -l ,it as this: 0 22 * * * /bin/bash -l -c 'backup perform -t

[Rails] Looking for a Ruby person in Providence RI

2012-09-01 Thread RHT Girl
Hey gang: I'm looking for a ruby person to do work for a client of mine in Providence RI. Please message me or email me at elizabeth.con...@rht.com if you are available. Thanks -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post

[Rails] OWASP AppSec USA 2012 (Austin) Oct 23-26: training will feature web app defensive coding and testing

2012-09-01 Thread c1ph3r_qu33n
Ruby on Rails developers may be interested in these AppSec USA 1- and 2-day sessions: Web Application Secure Defensive Coding Bootcamp (Jim Manico and Eoin Keary)http://www.appsecusa.org/schedule/trainings/web-application-secure-defensive-coding-bootcamp/ Hands on Web Application Testing:

[Rails] Ruby on rails Developer-Golden CO

2012-09-01 Thread pradeep thomas
Hi We are looking for a strong Ruby on Rails developer in Golden, CO. Post your resumes to *pradeept at hrgiants.com* or call me at *510 870 2315. PDT* Description: Join our agile team of Ruby on Rails developers building wireless home automation services in Golden, Colorado. We're developing

[Rails] Re: Delayed Job Question

2012-09-01 Thread Frederick Cheung
On Saturday, September 1, 2012 3:48:26 AM UTC+1, Ruby-Forum.com User wrote: Hello People, I just want to know how the delay job gem works. I am confused how it detects when the server is having less load and does computing intensive job at that time. It doesn't. You run separate

[Rails] Re: Wierd encoding problem

2012-09-01 Thread Frederick Cheung
On Wednesday, August 29, 2012 8:55:46 AM UTC+1, Martin Klepsch wrote: I put the complete error description into a gist ( https://gist.github.com/5d2cef1414f1643fca5a) for better readability. The basic problem is that a properly encoded Json post request gets decoded an a very weird way.

[Rails] Re: Beginner

2012-09-01 Thread Frederick Cheung
On Wednesday, August 29, 2012 6:34:57 PM UTC+1, Bala Ramachandran wrote: I am someone with no programming experience. 1. What is the best way for me to learn Ruby on Rails Personally I believe at least some knowledge of ruby is useful. People speak well of rubykoans.com 2. How long

[Rails] Re: Question1 Cucumber Rails

2012-09-01 Thread Fahim Patel
thanks Q1 if i have 2 sceanario and 1 background . but i want only 1 scenario should used that backgound and 2nd scenario dont use that background. and i want to run them same time. can it is possible ? Q2 What is the diff between Capybara and Webrat? Which one is by default configure with

[Rails] Question 2 (Answer my friends)

2012-09-01 Thread Fahim Patel
thanks Q1 if i have 2 sceanario and 1 background . but i want only 1 scenario should used that backgound and 2nd scenario dont use that background. and i want to run them same time. can it is possible ? Q2 What is the diff between Capybara and Webrat? Which one is by default configure with

Re: [Rails] Getting Started with Rails - tutorial problem

2012-09-01 Thread Colin Law
On 30 August 2012 17:11, noodlecz jirimatej...@gmail.com wrote: Hi I m trying to do my first aplication in rails. I use oficial tutorial http://guides.rubyonrails.cz/#hello-world-v-rails and I have a problem with one of steps. When I executed $ rake db:create (or only rake), I got an erorr:

Re: [Rails] PayPal Integration

2012-09-01 Thread Colin Law
On 31 August 2012 12:14, keerthi priya emailtokeerthipr...@gmail.com wrote: Hi i was following this link http://www.funonrails.com/search?q=paypalimageField.x=0imageField.y=0max-results=10 for PayPal integration in the process i got this error undefined local variable or method `pay_bill_url'

[Rails] Re: Delayed Job Question

2012-09-01 Thread Karthikeyan A k
Thanks a lot folks! that explains all of it I think. -- 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.com. To unsubscribe from

[Rails] Re: Question1 Cucumber Rails

2012-09-01 Thread Fahim Patel
On Friday, August 31, 2012 7:29:48 PM UTC+5:30, Fahim Patel wrote: can we write multiple background in one feature file? can we write multiple feature in one feature file.? -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To

[Rails] has_one with nested form

2012-09-01 Thread Erwin
I have an Item model with has_one :geolocation association I need to create/update in one form class Item ActiveRecord::Base has_one :geolocation, :dependent = :destroy accepts_nested_attributes_for :geolocation, :reject_if = :all_blank, :allow_destroy = true attr_accessible

Re: [Rails] Re: Question1 Cucumber Rails

2012-09-01 Thread Fahim Patel
On Fri, Aug 31, 2012 at 7:43 PM, Jordon Bedwell envyge...@gmail.com wrote: On Friday, 31 August 2012 08:59:48 UTC-5, Fahim Patel wrote: can we write multiple background in one feature file? No. can we write multiple feature in one feature file.? Yes. when i try to write

Re: [Rails] Re: hii friends,,,,,i m new to rails......i think there is a problem in destroy command .

2012-09-01 Thread Fahim Patel
i have given a code snippet . u can watch it . i think this the big issue On Fri, Aug 31, 2012 at 7:47 PM, Jordon Bedwell envyge...@gmail.com wrote: On Friday, 31 August 2012 09:03:40 UTC-5, Fahim Patel wrote: can one explain this issue? On Thursday, August 16, 2012 10:33:47 AM UTC+5:30,

Re: [Rails] Re: hii friends,,,,,i m new to rails......i think there is a problem in destroy command .

2012-09-01 Thread Colin Law
On 1 September 2012 12:12, Fahim Patel pafa...@gmail.com wrote: i have given a code snippet . u can watch it . i think this the big issue Why do you think it is a big issue? Colin On Fri, Aug 31, 2012 at 7:47 PM, Jordon Bedwell envyge...@gmail.com wrote: On Friday, 31 August 2012

[Rails] Re: has_one with nested form

2012-09-01 Thread Erwin
[SOLVED] doesn't need this key ... has_one .. the key is in the target model 'item_id' in Geolocation On 1 sep, 12:57, Erwin yves_duf...@mac.com wrote: I have an Item model with has_one :geolocation association I need to create/update  in one form class Item ActiveRecord::Base   has_one

[Rails] Construction methods

2012-09-01 Thread Jason Walsh
Hi Is there a method to create child objects after a parent object has been created? eg i have a process class, which when created should contain at least 1 digram class. I have looked at the initialize method but not sure when this is invoked ie when an object is created (ie saved to db) or

Re: [Rails] Construction methods

2012-09-01 Thread Colin Law
On 1 September 2012 16:15, Jason Walsh li...@ruby-forum.com wrote: Hi Is there a method to create child objects after a parent object has been created? eg i have a process class, which when created should contain at least 1 digram class. I have looked at the initialize method but not sure

[Rails] Parsing data and create record when app starts

2012-09-01 Thread Andrew Zed
Hello, I'm a newbie and would be appreciated for any help. So that's the situation: I try to build a simple rails app which will give users an opportunity to manage a list of some product. But except creating by user, some products list should be loaded into the view when app starts. This list is

[Rails] Re: Parsing data and create records when app starts

2012-09-01 Thread 7stud --
products list should be loaded into the view when app starts. In Rails, apps don't start. Instead, web browsers send requests to urls, which your app then directs to the proper controller and action. So I would start by reading the Rails Guide about routing to figure out how to write simple

[Rails] Re: How can an rspec test for a view pass if there's no action for the view in the controller?

2012-09-01 Thread 7stud --
It's a feature of Rails. It's a problem if it causes problems. (Note: nothing in this post has anything to do with rspec.) For me, that routing behavior is causing problems. Here's why: if I add a route such as: get static_pages/dog ...and then enter the url

[Rails] Re: Parsing data and create records when app starts

2012-09-01 Thread Andrew Zed
Hmm, I think I get it. Thanks. And now it works just as I planned. -- 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.com. To

[Rails] Trouble With db:migrate

2012-09-01 Thread Jason Havner
I'm just learning Rails and working on a simple blog application. I have everything installed properly (so it seems) but when I run rake db:migrate I get this error: Could not find i18n-0.6.1 in any of the sources I've looked at a couple different sources to try and find what could be wrong,

[Rails] n00b: authentication via Google

2012-09-01 Thread AlexD
What is the simple way in Rails to do user authentication via Google? Thanks, Alex. -- 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,

Re: [Rails] Getting Started with Rails - tutorial problem

2012-09-01 Thread mr.li
i think you just need exec $ bundle install On Sat, Sep 1, 2012 at 6:22 PM, Colin Law clan...@googlemail.com wrote: On 30 August 2012 17:11, noodlecz jirimatej...@gmail.com wrote: Hi I m trying to do my first aplication in rails. I use oficial tutorial

[Rails] Re: How can an rspec test for a view pass if there's no action for the view in the controller?

2012-09-01 Thread Frederick Cheung
On Saturday, September 1, 2012 11:05:36 PM UTC+1, Ruby-Forum.com User wrote: === Unknown action The action 'dog' could not be found for StaticPagesController === Then if I add the dog action to the controller, then create a view, everything works fine and dandy. You can skip the

[Rails] Re: Contacts Importer/ Invite friends import Gmail Hotmail etc

2012-09-01 Thread Rashila Noushad
I have successfully imported contacts with 'contacts' gem in my localhost. But in production environment I am getting 'Authentication Error'. Please suggest a solution. Thanks, Rashila -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the

[Rails] Re: How can an rspec test for a view pass if there's no action for the view in the controller?

2012-09-01 Thread 7stud --
Thanks for the response Frederick Cheung. I don't like this 'default rendering', nor the misleading error message saying the action is missing--but I guess I'll have to live with it. A route and view is all that's necessary to render a page. -- Posted via http://www.ruby-forum.com/. --

[Rails] Re: Trouble With db:migrate

2012-09-01 Thread 7stud --
How about trying: .../your_app$ bundle install And then .../your_app$ bundle exec rake db:migrate -- 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

Re: [Rails] Help getting started: Newbie: Windows and Rails

2012-09-01 Thread Bruce Whealton
Dheeraj, And others... I am now convinced to use Linux/Ubuntu in my VirtualBox installation. I followed the tutorial that was posted earlier. Colin, on this list, recommended this posting: http://blog.sudobits.com/2012/05/02/how-to-install-ruby-on-rails-in-ubuntu-12-04-lts/ I’ll have