[Rails] Basic Paypal

2012-08-31 Thread Khan
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 despite i have this code in my model called Card Cart Model: class Cart <

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

2012-08-31 Thread Bruce Whealton
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 this in a linux environment. My apps on the web will be in Linux. I se

Re: [Rails] Newbie Q: How to find the user that the question belongs_to

2012-08-31 Thread Bala Mani
Hai! This tutorials is help for you ... http://guides.rubyonrails.org/association_basics.html by bdeveloper01 -- 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.

Re: [Rails] Delayed Job Question

2012-08-31 Thread thiagocifani
DelayedJob just creates anotar thread and a send the email or execute the method on parallel without stop the ruby thread! You can set a delay to call the method but it does not works as you throught! ;) Sent from my iPhone On 31/08/2012, at 23:47, Karthikeyan A k wrote: > Hello People, > >

[Rails] Delayed Job Question

2012-08-31 Thread Karthikeyan A k
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. Or it just tries to do some thing, if it fails, waits for random time and does it again? -- Posted via http://www.ruby-f

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

2012-08-31 Thread Walter Lee Davis
It's a feature of Rails. It's a problem if it causes problems. With the sort of routing you have, it's only going to expose the views you indicate in your routes.rb file. If you had a more liberal route like match 'info/:action' => 'info#action' then it would show any action.html you placed in

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

2012-08-31 Thread 7stud --
So this is a route "problem"? -- 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 this group, send email t

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

2012-08-31 Thread Walter Lee Davis
On Aug 31, 2012, at 4:10 PM, 7stud -- wrote: > Thanks for the response. Here is my routes.rb: > > > SampleApp25::Application.routes.draw do > get "static_pages/home" > get "static_pages/help" > get "static_pages/about" > get "static_pages/contact" Yup. I can confirm that with a similar r

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

2012-08-31 Thread 7stud --
Thanks for the response. Here is my routes.rb: SampleApp25::Application.routes.draw do get "static_pages/home" get "static_pages/help" get "static_pages/about" get "static_pages/contact" # The priority is based upon order of creation: # first created -> highest priority. # Sampl

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

2012-08-31 Thread Walter Lee Davis
On Aug 31, 2012, at 2:49 PM, 7stud -- wrote: > 1) Yes, the page shows when I start rails server, and then use the url: > > http://localhost:300/static_pages/home > > 2) Everything in public/ was created by rails new: > > $ ls public/ > 404.html 500.html index.html > 422.html favicon.ico ro

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

2012-08-31 Thread 7stud --
1) Yes, the page shows when I start rails server, and then use the url: http://localhost:300/static_pages/home 2) Everything in public/ was created by rails new: $ ls public/ 404.html 500.html index.html 422.html favicon.ico robots.txt 3) test.log: Started GET "/static_pages/home" for 127

[Rails] Re: custom js in rails project

2012-08-31 Thread Axel Aguilar
hi! since the css and js is the zurb foundation, I realize I can install the gem, and I follow the how to in the home page at git-hub (https://github.com/zurb/foundation-rails), and I get stuck in "Using foundation in production", I cant use capistrano because I don't know where is the capfile.. so

Re: [Rails] Newbie Q: How to find the user that the question belongs_to

2012-08-31 Thread aash dhariya
I guess you are looking for this or probably i misunderstood your question def show @question = Question.find(params[:id]) @user = @question.user end On Fri, Aug 31, 2012 at 8:56 PM, Nate FT wrote: > I have a User and a Question model, User has_many questions and Question > belongs_to user.

Re: [Rails] Newbie Q: How to find the user that the question belongs_to

2012-08-31 Thread Colin Law
On 31 August 2012 16:26, Nate FT wrote: > I have a User and a Question model, User has_many questions and Question > belongs_to user. > > On my question show page, I show a question, along with the name of the > user who's asking the question. > > Everything seems to be working fine, but my contro

[Rails] Newbie Q: How to find the user that the question belongs_to

2012-08-31 Thread Nate FT
I have a User and a Question model, User has_many questions and Question belongs_to user. On my question show page, I show a question, along with the name of the user who's asking the question. Everything seems to be working fine, but my controller looks like this: questions_controller.rb . . .

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

2012-08-31 Thread Jordon Bedwell
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, Fahim Patel wrote: >> >> let me explain this problem >> ---rails destroythis command >> destroy m

[Rails] Re: Question1 Cucumber Rails

2012-08-31 Thread Jordon Bedwell
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. Read: http://pragprog.com/book/hwcuc/the-cucumber-book -- You received this message because you

Re: [Rails] Question1 Cucumber Rails

2012-08-31 Thread Jordon Bedwell
On Fri, Aug 31, 2012 at 8:59 AM, Fahim Patel wrote: > can we write multiple background in one feature file? No. > can we write multiple feature in one feature file.? Yes. Read: http://pragprog.com/book/hwcuc/the-cucumber-book -- You received this message because you are subscribed to

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

2012-08-31 Thread Colin Law
On 31 August 2012 15:03, Fahim Patel wrote: > can one explain this issue? > > On Thursday, August 16, 2012 10:33:47 AM UTC+5:30, Fahim Patel wrote: >> >> let me explain this problem >> ---rails destroythis command >> destroy model,scaffold etc .

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

2012-08-31 Thread Fahim Patel
can one explain this issue? On Thursday, August 16, 2012 10:33:47 AM UTC+5:30, Fahim Patel wrote: > > let me explain this problem > ---rails destroythis command > destroy model,scaffold etc . > problem is that if a model or other structure

[Rails] Question1 Cucumber Rails

2012-08-31 Thread Fahim Patel
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 post to this group, send email to rubyonrails-talk@googlegroups.com. To u

Re: [Rails] PayPal

2012-08-31 Thread Patrick Mulder
The error says that the route is not found. For debugging, you need to check your routes. Try: rake routes | grep pay_bill Something should show up, since the tutorials says to put this in the routes file: match '/billing', :to => 'billing#create', :as => :pay_bill Maybe rereading: http:/

Re: [Rails] PayPal

2012-08-31 Thread sameena Khan
here is the link http://www.funonrails.com/search?q=paypal&imageField.x=0&imageField.y=0&max-results=10 On Fri, Aug 31, 2012 at 4:53 PM, Khan wrote: > Hi all i found this link for paypal integration and in the process i got > this error > > undefined local variable or method `pay_bill_url' > >

[Rails] PayPal

2012-08-31 Thread Khan
Hi all i found this link for paypal integration and in the process i got this error undefined local variable or method `pay_bill_url' what does it means Cheers Khan -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this g

Re: [Rails] Re: Re: Extracting information out of a database column

2012-08-31 Thread Michael Pavling
On 31 August 2012 08:59, Joshua Baldock wrote: > Message column and example message looks like this: > > "The [user] is logged in via [hostname]" I assume the square brackets are not in the string, so that a real string might look like : "The administrator is logged in via michael-desktop" ? I

[Rails] Re: Re: Extracting information out of a database column

2012-08-31 Thread Joshua Baldock
Michael Pavling wrote in post #1074020: > On 31 August 2012 08:20, Joshua Baldock wrote: >> Splitting the string and then storing them as additional attributes to >> the instance variable that contains the rest of the selected table >> values. > > Do you have an example of the string; the pattern

Re: [Rails] Re: Extracting information out of a database column

2012-08-31 Thread Michael Pavling
On 31 August 2012 08:20, Joshua Baldock wrote: > Splitting the string and then storing them as additional attributes to > the instance variable that contains the rest of the selected table > values. Do you have an example of the string; the pattern that similar instances would follow, and the com

[Rails] Re: Extracting information out of a database column

2012-08-31 Thread Joshua Baldock
Michael Pavling wrote in post #1074016: > On 31 August 2012 07:41, Joshua Baldock wrote: >> I have an existing database that im building a rails app on top of. One >> of my columns 'message' is a long string that I would like to be able to >> query and split into various attributes to then be able

[Rails] Re: Extracting information out of a database column

2012-08-31 Thread Joshua Baldock
Jordon Bedwell wrote in post #1074013: > On Friday, 31 August 2012 01:42:10 UTC-5, Ruby-Forum.com User wrote: > > I don't quite understand exactly what you mean but it sounds to me like > you > want a custom serializer. > http://stackoverflow.com/questions/4472479/custom-serialization-for-fields-i

Re: [Rails] Extracting information out of a database column

2012-08-31 Thread Michael Pavling
On 31 August 2012 07:41, Joshua Baldock wrote: > I have an existing database that im building a rails app on top of. One > of my columns 'message' is a long string that I would like to be able to > query and split into various attributes to then be able to display each > of those attributes in a v

[Rails] Re: Paginate an array

2012-08-31 Thread Jordon Bedwell
On Wednesday, 29 August 2012 08:07:18 UTC-5, Ruby-Forum.com User wrote: > > My controller code is as follows, > > > def index > end > > def show > if params[:cat_id] > # cat_id is fetched from DB(a table with two columns id and name) > #mapped as cat_id in routes file >