thanks i have fix that
by add turst
--
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
On Jan 17, 5:41 am, selva raj ksraj@gmail.com wrote:
i got an error ,
undefined method `each'
and i am using the following code
% for book in @books do %
%= will_paginate @books %
tr
td%=h book.publisher.name %/td
td%=h book.title %/td
td%=h book.isbn %/td
please
I also suspect that you want that %= will_paginate @books % line
before the for loop.
On 17 January 2011 11:55, Frederick Cheung frederick.che...@gmail.com wrote:
On Jan 17, 5:41 am, selva raj ksraj@gmail.com wrote:
i got an error ,
undefined method `each'
and i am using the following
% for book in @books %
tr
td%=h book.publisher.name %/td
td%=h book.title %/td
td%=h book.isbn %/td
%end%
%= will_paginate @books %
On Mon, Jan 17, 2011 at 5:28 PM, Peter Hickman
peterhickman...@googlemail.com wrote:
I also suspect that you want that %= will_paginate @books %
Thanks to all , i found the answer that
% @books.each do |book| %
tr
td%=h book.publisher.name %/td
td%=h book.title %/td
td%=h book.isbn %/td
its working...
On Jan 17, 5:02 pm, Ratnam Raj varasala chinnuj...@gmail.com wrote:
% for book in @books %
tr
td%=h
rajeevsharma86 wrote:
to create a full flash site like twitter
Twitter doesn't use Flash. Come back when you actually have something
accurate to say.
is hard for a new bie Try make
a
simple one in a starting
http://www.noupe.com/ajax/create-a-simple-twitter-app.html
Best,
--
Pablo Torres N. wrote:
[...]
Same story, Rails 2.3.x is the stable one, but Rails 3 is just around
the corner. Some apps are already using Rails 3 for production, so if
you are absolutely new to it, learn that.
No. If you're new to Rails, learn 2.3, the stable version that people
are
hey Marnen Laibow-Koser,
* *i* *am *sorry *for that flash means in that mail
Complete .
the acctual line should be there is this
*to create a full flash/(Complete) site like twitter
* sorrry to all for incomplete sentance
On Sun, Aug 15, 2010 at 8:24 PM, Marnen
However thank you all,
I found solution, I write few lines in posts helper and everything
works fine
module PostsHelper
def wrap(content)
content.split.map{ |s| wrap_long_string(s) }.join(' ')
end
private
def wrap_long_string(text, max_width = 30)
zero_width_space = #8203;
Ainar Abramovich wrote:
Hi to everyone! I need to split one long line in two or multiple
lines.. how can I do that? I have a form where you can write in for
example 200 character long line (a...), when I submit
it(line contains no spaces), char line updates in my blog, but the
only
use text_area
for example
%=
text_area(:product,:description ,:size=100x10,:disabled=disabled)
%
I hope that will help.
On May 24, 3:13 pm, Ainar Abramovich youhubcommun...@gmail.com
wrote:
Hi to everyone! I need to split one long line in two or multiple
lines.. how can I do that? I have a
axelsef wrote:
use text_area
for example
%=
text_area(:product,:description ,:size=100x10,:disabled=disabled)
%
I hope that will help.
On May 24, 3:13�pm, Ainar Abramovich youhubcommun...@gmail.com
That's a really bad solution. Disabled input objects are usually a
sign that you're
Hi, Kevid!
Have you tried scaffolding? It shold do the trick, you have only to
delete unnecessary data in index.html.erb and move the link to name.
--
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
Viorel,
Thanks for your response. the array i have is the result of a
webservice. Its a data I pulled from another web site.
my rails application has no model
- just a form {in index.erb} to send specific data to a
webservice (defined in my controller.rb). it is this websevice that
returns
Hi Karthik
Do you have any issues now in testing?
On Aug 4, 2:01 pm, karthik k cse.k.kart...@gmail.com wrote:
On Tue, Aug 4, 2009 at 2:29 PM, Frederick Cheung frederick.che...@gmail.com
wrote:
On Aug 4, 9:56 am, karthik k cse.k.kart...@gmail.com wrote:
On Tue, Aug 4, 2009 at 2:19
On Tue, Aug 11, 2009 at 3:12 PM, Anurag anuraag@gmail.com wrote:
Hi Karthik
Do you have any issues now in testing?
On Aug 4, 2:01 pm, karthik k cse.k.kart...@gmail.com wrote:
On Tue, Aug 4, 2009 at 2:29 PM, Frederick Cheung
frederick.che...@gmail.com
hi Anurag
thank you
2009/8/4 karthik k cse.k.kart...@gmail.com:
Hi Colin
the name field is made as
validates_uniqueness_of :name
so please let me know what i did is right or wrong
though the name is different it is providing the error message
Is this the right way to check uniqueness
I got the
On Tue, Aug 4, 2009 at 12:43 PM, Colin Law clan...@googlemail.com wrote:
2009/8/4 karthik k cse.k.kart...@gmail.com:
Hi Colin
the name field is made as
validates_uniqueness_of :name
so please let me know what i did is right or wrong
though the name is different it is providing
On Aug 4, 5:05 am, karthik k cse.k.kart...@gmail.com wrote:
Hi Colin
the name field is made as
validates_uniqueness_of :name
Your test is not consistent: you first assert that post1 is valid,
then you assert that it has an error on the name column - clearly
these cannot both be true.
On Tue, Aug 4, 2009 at 2:19 PM, Frederick Cheung frederick.che...@gmail.com
wrote:
On Aug 4, 5:05 am, karthik k cse.k.kart...@gmail.com wrote:
Hi Colin
the name field is made as
validates_uniqueness_of :name
Your test is not consistent: you first assert that post1 is valid,
On Aug 4, 9:56 am, karthik k cse.k.kart...@gmail.com wrote:
On Tue, Aug 4, 2009 at 2:19 PM, Frederick Cheung frederick.che...@gmail.com
above is my code and worked fine for uniqueness
I two name is same then it provides error message else it succeeds
plz let me know whether i am right or
On Tue, Aug 4, 2009 at 2:29 PM, Frederick Cheung frederick.che...@gmail.com
wrote:
On Aug 4, 9:56 am, karthik k cse.k.kart...@gmail.com wrote:
On Tue, Aug 4, 2009 at 2:19 PM, Frederick Cheung
frederick.che...@gmail.com
above is my code and worked fine for uniqueness
I two name is
Hi Colin
the name field is made as
validates_uniqueness_of :name
so please let me know what i did is right or wrong
though the name is different it is providing the error message
Is this the right way to check uniqueness
I got the information from from
Hi Colin
Thank you very much
can you please guide me for testing purpose because i am very new to ruby on
rails
--
Karthik.k
Mobile - +91-9894991640
On Sat, Aug 1, 2009 at 1:29 PM, Colin Law clan...@googlemail.com wrote:
2009/8/1 karthik k cse.k.kart...@gmail.com:
def
2009/8/1 karthik k cse.k.kart...@gmail.com:
Hi Colin
Thank you very much
can you please guide me for testing purpose because i am very new to ruby on
rails
Did you try what I suggested?
If you have not already done so I would look at the RoR guides at
http://guides.rubyonrails.org/
On Aug 1, 9:13 am, karthik k cse.k.kart...@gmail.com wrote:
Hi Colin
Thank you
I saw that link but as a fresher not able to understand
but if i have any doubt please guide me
Like Colin said, your test is asserting that the record is saved
successfully. The most likely reason for this
hi Fred
Thank you
I will do the same
--
Karthik.k
Mobile - +91-9894991640
On Sat, Aug 1, 2009 at 2:13 PM, Frederick Cheung frederick.che...@gmail.com
wrote:
On Aug 1, 9:13 am, karthik k cse.k.kart...@gmail.com wrote:
Hi Colin
Thank you
I saw that link but as a fresher not able
hi
i am updating the data in unit testing
def test_for_update
post=counties(:one)
assert post.valid?, post.errors.full_messages
assert post.update_attributes(:name=)
end
name should not be empty but as you said i displayed
assert post.valid?, post.errors.full_messages
But i am
2009/8/1 karthik k cse.k.kart...@gmail.com:
hi
i am updating the data in unit testing
def test_for_update
post=counties(:one)
assert post.valid?, post.errors.full_messages
assert post.update_attributes(:name=)
end
name should not be empty but as you said i displayed
hi Colin
1) Failure:
test_for_update(CountyTest) [test/unit/county_test.rb:19]:
Name has already been taken.
false is not true.
--
Karthik.k
Mobile - +91-9894991640
On Sat, Aug 1, 2009 at 3:59 PM, Colin Law clan...@googlemail.com wrote:
2009/8/1 karthik k cse.k.kart...@gmail.com:
hi
2009/8/1 karthik k cse.k.kart...@gmail.com:
hi Colin
1) Failure:
test_for_update(CountyTest) [test/unit/county_test.rb:19]:
Name has already been taken.
false is not true.
Could you reply with your comments inserted into the existing email
please rather than at the top, it makes it much
My Question
def test_check_for_validity
post=County.new(:name=myname,:description=mydesc)
assert post.save
end
above is the method and when i run unit test it is saying as
1) Failure:
test_check_for_validity(CountyTest) [/test/unit/county_test.rb:10]:
false is not true.
what does it
Hi Colin
I got it
we need to give like below
assert post.update_attributes(:name=) ,post.errors.full_messages
--
Karthik.k
Mobile - +91-9894991640
On Sat, Aug 1, 2009 at 4:44 PM, karthik k cse.k.kart...@gmail.com wrote:
My Question
def test_check_for_validity
post=County.new(:name=
Hi colin
On small help
below is the code or checking for uniquness
def test_check_for_uniqueness_name
post=County.new(:name=mynamed,:description=mydesc,:region_id=3)
assert post.valid?, post was not valid #{post.errors.inspect}
2009/8/1 karthik k cse.k.kart...@gmail.com:
Hi colin
On small help
below is the code or checking for uniquness
def test_check_for_uniqueness_name
post=County.new(:name=mynamed,:description=mydesc,:region_id=3)
assert post.valid?, post was not valid #{post.errors.inspect}
thanks actually for referring that link... i want some more details
regarding that...
On Jun 8, 4:37 pm, p_W paulwoolcoc...@gmail.com wrote:
Well Word doc's are tricky, here's some ideas from SO.com:
http://stackoverflow.com/questions/375861/how-to-parse-word-documents...
That will
I may not fully understand the question, but are you asking someone to
supply the whole application for you? If not then a more focussed
question indicating the particular detail that you need help with
would be better.
I presume you have already worked through some tutorials such as the
rails
thanks for your quick reply... see i have to parse a word document and
i have to map those details to database in ROR...
On Jun 8, 5:45 pm, Colin Law clan...@googlemail.com wrote:
I may not fully understand the question, but are you asking someone to
supply the whole application for you? If
That's not really what we do here...try
http://www.rentacoder.com
On Jun 8, 6:39 am, anandh anandhthiyagara...@gmail.com wrote:
thanks for your quick reply... see i have to parse a word document and
i have to map those details to database in ROR...
On Jun 8, 5:45 pm, Colin Law
thanks for your reply... atleast just say me the overview or steps i
have to follow in doing that application...
On Jun 8, 7:44 pm, p_W paulwoolcoc...@gmail.com wrote:
That's not really what we do here...try
http://www.rentacoder.com
On Jun 8, 6:39 am, anandh anandhthiyagara...@gmail.com
Well Word doc's are tricky, here's some ideas from SO.com:
http://stackoverflow.com/questions/375861/how-to-parse-word-documents-with-ruby
That will probably be the hardest part, after parsing it, it should be
a pretty standard thing to take the data and put it in a DB, any
decent Rails
https://help.ubuntu.com/community/RubyOnRails
There is all information to install RoR.
On Fri, Feb 20, 2009 at 11:37 AM, NARAYANAN CJ cjnarayanan@gmail.comwrote:
hello there
can any one help me out to get the installation of ruby on rails on ubuntu
8.10
i tried installing but it could
many thanks agustin :)
i tried to install but me showing the same error when i tried to investigate
i could not seems to have the rails neither ruby installed at my location
where it usually does
when i tried to investigate the path i could not found it around
this particularly happens when i
I just setup Ubuntu this morning for a new vps:
http://roninonrails.blogspot.com/2008/11/setting-up-ubuntu-810-for-ruby-on-rails.html
Tutorial I used, may help you out.
Thomas
On Feb 21, 1:54 am, NARAYANAN CJ cjnarayanan@gmail.com wrote:
many thanks agustin :)
i tried to install but me
44 matches
Mail list logo