[Rails] Re: Hi i;m new in Ruby on Rails need same help

2014-02-17 Thread Pop Pop
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

[Rails] Re: hi guys

2011-01-17 Thread Frederick Cheung
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

Re: [Rails] Re: hi guys

2011-01-17 Thread Peter Hickman
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  

Re: [Rails] Re: hi guys

2011-01-17 Thread Ratnam Raj varasala
% 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 %

[Rails] Re: hi guys

2011-01-17 Thread selva raj
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

[Rails] Re: hi, new on ruby on rails

2010-08-15 Thread Marnen Laibow-Koser
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, -- 

[Rails] Re: hi, new on ruby on rails

2010-08-15 Thread Marnen Laibow-Koser
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

Re: [Rails] Re: hi, new on ruby on rails

2010-08-15 Thread rajeevsharma86
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

[Rails] Re: Hi, how can I split line length in Rails?

2010-06-10 Thread Ainar Abramovich
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;

[Rails] Re: Hi, how can I split line length in Rails?

2010-05-24 Thread Marnen Laibow-Koser
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

[Rails] Re: Hi, how can I split line length in Rails?

2010-05-24 Thread axelsef
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

[Rails] Re: Hi, how can I split line length in Rails?

2010-05-24 Thread Marnen Laibow-Koser
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

[Rails] Re: hi

2010-03-05 Thread Viorel
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

[Rails] Re: hi

2010-03-05 Thread kevid
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

[Rails] Re: Hi doubt in unit testing

2009-08-11 Thread Anurag
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

[Rails] Re: Hi doubt in unit testing

2009-08-11 Thread karthik k
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

[Rails] Re: Hi doubt in unit testing

2009-08-04 Thread Colin Law
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

[Rails] Re: Hi doubt in unit testing

2009-08-04 Thread karthik k
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

[Rails] Re: Hi doubt in unit testing

2009-08-04 Thread Frederick Cheung
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.

[Rails] Re: Hi doubt in unit testing

2009-08-04 Thread karthik k
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,

[Rails] Re: Hi doubt in unit testing

2009-08-04 Thread Frederick Cheung
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

[Rails] Re: Hi doubt in unit testing

2009-08-04 Thread karthik k
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

[Rails] Re: Hi doubt in unit testing

2009-08-03 Thread karthik k
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

[Rails] Re: Hi doubt in unit testing

2009-08-01 Thread karthik k
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

[Rails] Re: Hi doubt in unit testing

2009-08-01 Thread Colin Law
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/

[Rails] Re: Hi doubt in unit testing

2009-08-01 Thread Frederick Cheung
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

[Rails] Re: Hi doubt in unit testing

2009-08-01 Thread karthik k
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

[Rails] Re: Hi doubt in unit testing

2009-08-01 Thread karthik k
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

[Rails] Re: Hi doubt in unit testing

2009-08-01 Thread Colin Law
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

[Rails] Re: Hi doubt in unit testing

2009-08-01 Thread karthik k
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

[Rails] Re: Hi doubt in unit testing

2009-08-01 Thread Colin Law
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

[Rails] Re: Hi doubt in unit testing

2009-08-01 Thread karthik k
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

[Rails] Re: Hi doubt in unit testing

2009-08-01 Thread karthik k
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=

[Rails] Re: Hi doubt in unit testing

2009-08-01 Thread karthik k
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}

[Rails] Re: Hi doubt in unit testing

2009-08-01 Thread Colin Law
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}

[Rails] Re: hi folks....

2009-06-11 Thread anandh
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

[Rails] Re: hi folks....

2009-06-08 Thread Colin Law
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

[Rails] Re: hi folks....

2009-06-08 Thread anandh
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

[Rails] Re: hi folks....

2009-06-08 Thread p_W
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

[Rails] Re: hi folks....

2009-06-08 Thread anandh
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

[Rails] Re: hi folks....

2009-06-08 Thread p_W
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

[Rails] Re: hi team!! installation of ruby on rails on ubuntu 8.10

2009-02-20 Thread Agustin Nicolas Viñao Laseras
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

[Rails] Re: hi team!! installation of ruby on rails on ubuntu 8.10

2009-02-20 Thread NARAYANAN CJ
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

[Rails] Re: hi team!! installation of ruby on rails on ubuntu 8.10

2009-02-20 Thread tho...@icdesign.com.au
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