On 30 August 2012 22:29, 7stud -- li...@ruby-forum.com wrote:
The rspec test looks like this:
require 'spec_helper'
describe Static pages do
describe Home page do
it should have the h1 'Sample App' do
visit '/static_pages/home'
page.should have_selector('h1', :text =
Hi All,
I'm new to rails and am trying to tackle a problem that I can't seem to
find the right solution for.
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
On Friday, 31 August 2012 01:42:10 UTC-5, Ruby-Forum.com User wrote:
Hi All,
I'm new to rails and am trying to tackle a problem that I can't seem to
find the right solution for.
I have an existing database that im building a rails app on top of. One
of my columns 'message' is a long
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
On 31 August 2012 07:41, Joshua Baldock li...@ruby-forum.com 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
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.
Michael Pavling wrote in post #1074016:
On 31 August 2012 07:41, Joshua Baldock li...@ruby-forum.com 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
On 31 August 2012 08:20, Joshua Baldock li...@ruby-forum.com 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
Michael Pavling wrote in post #1074020:
On 31 August 2012 08:20, Joshua Baldock li...@ruby-forum.com 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;
On 31 August 2012 08:59, Joshua Baldock li...@ruby-forum.com 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
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
here is the link
http://www.funonrails.com/search?q=paypalimageField.x=0imageField.y=0max-results=10
On Fri, Aug 31, 2012 at 4:53 PM, Khan emailtosameenak...@gmail.com wrote:
Hi all i found this link for paypal integration and in the process i got
this error
undefined local variable or
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:
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
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 is
On 31 August 2012 15:03, Fahim Patel pafa...@gmail.com 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
On Fri, Aug 31, 2012 at 8:59 AM, Fahim Patel pafa...@gmail.com 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
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 are
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
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
.
.
.
On 31 August 2012 16:26, Nate FT li...@ruby-forum.com 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,
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 li...@ruby-forum.com wrote:
I have a User and a Question model, User has_many questions and
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
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
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 robots.txt
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.
# Sample of
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 route here in an
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 to
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
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
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 li...@ruby-forum.com wrote:
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.
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
33 matches
Mail list logo