[Rails] Routing Error

2015-07-13 Thread karthik sharma
I am new to ruby on rails, by seeing tutorials i created blog, some complications are there but manged to get the home page and implemented bootstrap in that Now i have created project in rails but unable to get the path from public folder in that application the path goes like this

Re: [Rails] HAML or erb

2014-07-24 Thread karthik Satyanarayana
Thanks for that Colin Law. On Wednesday, 23 July 2014 18:27:53 UTC+5:30, Colin Law wrote: On 23 July 2014 12:41, karthik Satyanarayana karthi...@gmail.com javascript: wrote: Hi All, I need to take a call on erb or HAML for my new project. I have gone through some of the posts

[Rails] HAML or erb

2014-07-23 Thread karthik Satyanarayana
Regards, KARTHIK D S -- 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 rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email

[Rails] Re: Re: Re: Ruby on Rails Kgio segmentation fault

2014-05-06 Thread Karthik Sirasanagandla
Two things: 1. Add an echo to output the version of ruby used 2. Let the first/initialization command be to use the right version of ruby, say something like `rvm use ruby-2.x.x` Hope it helps! Cheers, Karthik On Tuesday, 6 May 2014 14:56:57 UTC+5:30, Ruby-Forum.com User wrote: What

Re: [Rails] Re: Re: Re: Ruby on Rails Kgio segmentation fault

2014-05-06 Thread Karthik Sirasanagandla
Jus' to be clear, add the said two things in your unicorn.sh script and see the output to help debugging. Makes sense? On Tue, May 6, 2014 at 4:51 PM, Ed Ed li...@ruby-forum.com wrote: Two things: 1. Add an echo to output the version of ruby used 2. Let the first/initialization command be

[Rails] Re: sub domain + different rails application

2013-12-17 Thread Karthik Sirasanagandla
* * listen 80;* * server_name subdomain2.domain.com;* * location / {* *proxy_pass http://127.0.0.1:/;* * }* *}* Cheers and good luck! Karthik On Tuesday, 17 December 2013 11:45:05 UTC+5:30, saravanan p wrote: Hello friends, Is there any way to implement the subdomain i.e two more rails

[Rails] Re: Installation Problem

2013-03-26 Thread karthik selvakumar
I am asssuming you are using windows. Goto your My Documents folder Open this file .../My Douments/.ssh/id_rsa.pub with notepad *cd My Documents* * * *notepad .ssh/id_rsa.pub * copy paste this to your github settings. On Tuesday, 26 March 2013 01:10:21 UTC+5:30, Ruby-Forum.com User wrote:

[Rails] Re: Help me about connect Facebook in Ruby on Rails

2013-03-26 Thread karthik selvakumar
I use *fb_graph* gem to fetch all the friends. Then you can display this list of usernames any where you like. Check the link below: https://github.com/nov/fb_graph#connections As Cassio suggests , *koala* gem is another alternative for interacting with FB from rails. On Monday, 25 March

[Rails] Form_for text_area

2013-03-13 Thread karthik Satyanarayana
Hi all, Since I am new to ruby on rails. I'm stuck in some minor issue. I am using form_for in my view. In that I am using a text text. So, My question is, how to add a default value to the text_area along with the row and col values. Please help me out ASAP. -- You received this message

[Rails] Re: RoR on IDE for Beginner

2013-03-01 Thread karthik selvakumar
I use Vim with Rails.vim , Omnicomplete and I don't need anything other than this for my RoR development. If you hate remember key mappings ( which takes longer time in Vim with definitely worth Productivity ) I would recommend Sublime 2 which is light weight with tons of features and

[Rails] Re: Newbie Question

2013-03-01 Thread karthik selvakumar
The Pragmatic Bookshelf | *Agile Web Development* with *Rails. **This book has everything to start with.* On Friday, 22 February 2013 10:55:53 UTC+5:30, JohnA wrote: What are some Great resources to get into Rails? Keep in mind this is for someone that has little to no programming

[Rails] Design a scheduler on top of delayed_job

2012-06-04 Thread karthik selvakumar bhuvaneswaran
Hi , I am writing a scheduler with delayed_job as job processor. I have a doubt whether I should run scheduler on top of delayed_job or can I add the scheduler code on Worker.start method of delayed Job. I want scheduler in separate thread and delayed job execution in separate thread so

[Rails] rmagic error windows 7

2011-12-06 Thread karthik k
Hi guys Windows 7 Ruby 1.8.6 I am using rmagick-2.12.0-windows-binary-gem-for-Ruby-1.8.6 i installed successfully but when i run the server i am getting dialog box with error as The Procedure entry point AutoGammaImageChannel could not be located in the dynamic link library CORE_RL_magic.dll

Re: [Rails] Re: rmagic error windows 7

2011-12-06 Thread karthik k
Hi Luis Lavena Thank you I will do the same and revert back Karthik.K On Tue, Dec 6, 2011 at 9:58 PM, Luis Lavena luislav...@gmail.com wrote: On Dec 6, 8:08 am, karthik k cse.k.kart...@gmail.com wrote: Hi guys Windows 7 Ruby 1.8.6 I am using rmagick-2.12.0-windows-binary-gem

Re: [Rails] Re: How to copy views from development db to test db while running rake ?

2011-01-20 Thread Karthik Bhat
@ Marnen Laibow-Koser Thanks Marnen for the reply. I will look into it and will let you know. Thanks , karthik On Thu, Jan 20, 2011 at 10:27 AM, Marnen Laibow-Koser li...@ruby-forum.comwrote: Karthik l Bhat wrote in post #976157: Hi guys , I am stuck at a particular situation . When I run

[Rails] Re: How to copy views from development db to test db while running rake ?

2011-01-20 Thread Karthik l Bhat
and modify the lib. But i need to explore more inorder to implement this. Regards , Karthik -- 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

[Rails] How to copy views from development db to test db while running rake ?

2011-01-19 Thread Karthik l Bhat
Hi guys , I am stuck at a particular situation . When I run rake db:test:clone_structure ,the test db is not copying the views that are in the development db.So is there any solution for this problem so that I can get the views in test db also . I have tried using rake db:test:purge and rake

[Rails] Re: New To Rails

2011-01-19 Thread Karthik l Bhat
Better download Ruby on rails tutorials (lynda) -- 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

[Rails] NoMethodError (undefined method `match' for nil:NilClass):

2010-03-04 Thread Raj Karthik
Hi, I have a redmine server with Ruby 1.8 running along with Webrick. When I try to access any docs on the server using web interface I get the following message. Internal error An error occurred on the page you are trying to access. If you continue to experience the problems please contact the

[Rails] doubt in attachment

2009-11-11 Thread karthik k
Hi I have some four items in the page one among that is attachment when i leave one mandatory field blank and attach one file and hit submit it will say as one field is mandatory but the path is not available Please guide me -- Karthik.k Mobile - +91-9894991640

[Rails] Re: How to call method declared in one model

2009-09-01 Thread karthik k
On Tue, Sep 1, 2009 at 2:32 PM, Colin Law clan...@googlemail.com wrote: 2009/9/1 karthik k cse.k.kart...@gmail.com: On Tue, Sep 1, 2009 at 9:24 AM, Frederick Cheung frederick.che...@gmail.com wrote: [snip] Does Presenter have a role method ? if not then you've got your answer

[Rails] How to call method declared in one model

2009-08-31 Thread karthik k
hi guys I need to know how to call one method declared in one model to another controller or another model e.g model1.rb def check1 puts check1 end model2.rb def check2 puts check2 end i need to access check2 method from check1 in model1.rb my line to access check2 method is model2.check2

[Rails] Re: Controller Method .. ?

2009-08-31 Thread Karthik Kantharaj
Hemant Bhargava wrote: Got it .. Hemant Bhargava wrote: How to call a method of a controller into .. 1) another controller .. 2) another model .. .. Do u guys have any idea .. ? .. Hi can you plz share the information as how you got the result karthik.k -- Posted via

[Rails] Re: How to call method declared in one model

2009-08-31 Thread karthik k
On Mon, Aug 31, 2009 at 3:33 PM, Colin Law clan...@googlemail.com wrote: 2009/8/31 Colin Law clan...@googlemail.com: 2009/8/31 karthik k cse.k.kart...@gmail.com: hi guys I need to know how to call one method declared in one model to another controller or another model e.g

[Rails] Re: How to call method declared in one model

2009-08-31 Thread karthik k
On Mon, Aug 31, 2009 at 3:38 PM, karthik k cse.k.kart...@gmail.com wrote: On Mon, Aug 31, 2009 at 3:33 PM, Colin Law clan...@googlemail.com wrote: 2009/8/31 Colin Law clan...@googlemail.com: 2009/8/31 karthik k cse.k.kart...@gmail.com: hi guys I need to know how to call one method

[Rails] Re: How to call method declared in one model

2009-08-31 Thread karthik k
On Mon, Aug 31, 2009 at 4:17 PM, Colin Law clan...@googlemail.com wrote: 2009/8/31 karthik k cse.k.kart...@gmail.com: On Mon, Aug 31, 2009 at 4:04 PM, Colin Law clan...@googlemail.com wrote: 2009/8/31 karthik k cse.k.kart...@gmail.com: On Mon, Aug 31, 2009 at 3:38 PM

[Rails] Re: How to call method declared in one model

2009-08-31 Thread karthik k
On Tue, Sep 1, 2009 at 9:24 AM, Frederick Cheung frederick.che...@gmail.com wrote: Hi Same old model problem role.rd //model def check_role puts Role sdfsdfd end presenter.rb //model def validate_name self.role.check_role //calling from role.rb model end in

[Rails] Re: How to call method declared in one model

2009-08-31 Thread karthik k
On Tue, Sep 1, 2009 at 9:39 AM, karthik k cse.k.kart...@gmail.com wrote: On Tue, Sep 1, 2009 at 9:24 AM, Frederick Cheung frederick.che...@gmail.com wrote: Hi Same old model problem role.rd //model def check_role puts Role sdfsdfd end presenter.rb //model def

[Rails] Re: InvalidAuthenticityToken

2009-08-31 Thread karthik k
On Mon, Aug 31, 2009 at 12:57 PM, Peter De Berdt peter.de.be...@pandora.bewrote: On 28 Aug 2009, at 17:58, Philip Hallstrom wrote: What does the below line says ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken): -e:2:in `load' -e:2 Rails tries

[Rails] Re: InvalidAuthenticityToken

2009-08-29 Thread karthik k
On Fri, Aug 28, 2009 at 9:28 PM, Philip Hallstrom phi...@pjkh.com wrote: What does the below line says ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken): -e:2:in `load' -e:2 Rails tries to protect against invalid form submission by setting an

[Rails] InvalidAuthenticityToken

2009-08-28 Thread karthik k
Hi guys What does the below line says ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken): -e:2:in `load' -e:2 Please guide me -- Karthik.k Mobile - +91-9894991640 --~--~-~--~~~---~--~~ You received this message

[Rails] Check what is comming in param

2009-08-26 Thread karthik k
hi guys i am checking with params[:a].nil? and params[:a].blank? but in the url a is not coming but for some other purpose service i am using the same a for some other service if some params is nit coming in url how to check guide me -- Karthik.k Mobile - +91-9894991640

[Rails] Re: check paramater?

2009-08-26 Thread Karthik Kantharaj
Karthik Kantharaj wrote: Hi Below is the parameter for one process Parameters: {authenticity_token=kpYmwJjjYcJ3PNWBGaBf8rBd1Xxmg1WJjCkDtEYUq+0=, id=A, agency={status=all, contracts_id=, state_id=2, agency_id=}} in some other process Parameters: {authenticity_token

[Rails] check paramater?

2009-08-26 Thread Karthik Kantharaj
Hi Below is the parameter for one process Parameters: {authenticity_token=kpYmwJjjYcJ3PNWBGaBf8rBd1Xxmg1WJjCkDtEYUq+0=, id=A, agency={status=all, contracts_id=, state_id=2, agency_id=}} in some other process Parameters: {authenticity_token=kpYmwJjjYcJ3PNWBGaBf8rBd1Xxmg1WJjCkDtEYUq+0=, id=A }

[Rails] Get name from table has many , belong to relationship

2009-08-25 Thread karthik k
Hi Guys I have a table with Relationship has many belong to Employee table employee id addressid 12 12 13 13 i need to access addressid data from address table please guide me -- Karthik.k Mobile - +91-9894991640

[Rails] ActivRecord APIs for DB transactions

2009-08-24 Thread karthik k
Hi guys Can i get some reference for studying all ActivRecord API related to DB transactions. -- Karthik.k Mobile - +91-9894991640 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To

[Rails] Fields when entered needs to be validated

2009-08-20 Thread karthik k
hi guys Thanks for the support you give I have some four fields which is not mandatory, but when that field is entered need to be validated before saved else it can take null value can you please guide me -- Karthik.k Mobile - +91-9894991640

[Rails] Re: find in model

2009-08-20 Thread karthik k
On Thu, Aug 20, 2009 at 2:05 PM, Jeffrey L. Taylor r...@abluz.dyndns.orgwrote: Quoting karthik k cse.k.kart...@gmail.com: On Thu, Aug 20, 2009 at 10:03 AM, Jeffrey L. Taylor r...@abluz.dyndns.orgwrote: [snip] Hi Jeffrey thank you we have lot of database interaction

[Rails] Re: Fields when entered needs to be validated

2009-08-20 Thread karthik k
On Thu, Aug 20, 2009 at 4:34 PM, Rails List rails-mailing-l...@andreas-s.net wrote: Karthik Kantharaj wrote: hi guys Thanks for the support you give I have some four fields which is not mandatory, but when that field is entered need to be validated before saved else it can take

[Rails] Re: find in model

2009-08-19 Thread karthik k
On Thu, Aug 20, 2009 at 10:03 AM, Jeffrey L. Taylor r...@abluz.dyndns.orgwrote: Quoting karthik k cse.k.kart...@gmail.com: Hi guys My client asked me to do all the Model.find() in Model class i.e all database interaction should be in model class and not in controller I don't know how

[Rails] find in model

2009-08-19 Thread karthik k
Hi guys My client asked me to do all the Model.find() in Model class i.e all database interaction should be in model class and not in controller I don't know how to do that I need to pass details from html to model and do database work and send back to view I need some help Any sample link or

[Rails] Re: find in model

2009-08-19 Thread karthik k
On Thu, Aug 20, 2009 at 10:16 AM, Rails List rails-mailing-l...@andreas-s.net wrote: Controller -- def index @allemp = Employee.list end Model Employee -- def self.list find(:all) end -- Posted via http://www.ruby-forum.com/. Hi Guys Thank you --

[Rails] Read error: #Errno::ECONNABORTED: An established connection was aborted by the software in your host machine.

2009-08-12 Thread karthik k
Hi I am getting this error when i run Wed Aug 12 14:00:28 +0530 2009: Read error: #Errno::ECONNABORTED: An established connection was aborted by the software in your host machine. D:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel/http_response.rb:137:in `write'

[Rails] Re: Doubt in joins condition?

2009-08-11 Thread karthik k
On Tue, Aug 11, 2009 at 11:14 AM, Sijo Kg rails-mailing-l...@andreas-s.netwrote: Hi Karthik Kantharaj Ok One more thing please tell what you are trying to attain with the above query? Sijo Hi sijo With the below query @getdata=Agency.all(:joins=:contracts, :select=agencies

[Rails] Re: Doubt in joins condition?

2009-08-11 Thread karthik k
On Tue, Aug 11, 2009 at 12:03 PM, Sijo Kg rails-mailing-l...@andreas-s.netwrote: Hi you get agencies for each contract like Contract.all.each { |c| c.agencies } Here you get each contract information too For example Contract.all.each do |c| c.name #contract name c.agencies

[Rails] Re: Doubt in joins condition?

2009-08-11 Thread karthik k
On Tue, Aug 11, 2009 at 12:36 PM, Sijo Kg rails-mailing-l...@andreas-s.netwrote: Hi Karthik For example consider this data_array = [] Contract.all.each do |c| data_array [c,c.agencies] end Now in view you can iterate thru this like data_array.each do |arr| puts arr[0].name

[Rails] Re: Doubt in joins condition?

2009-08-11 Thread karthik k
On Tue, Aug 11, 2009 at 12:43 PM, karthik k cse.k.kart...@gmail.com wrote: On Tue, Aug 11, 2009 at 12:36 PM, Sijo Kg rails-mailing-l...@andreas-s.net wrote: Hi Karthik For example consider this data_array = [] Contract.all.each do |c| data_array [c,c.agencies] end Now

[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] Doubt in submit_to_remote?

2009-08-10 Thread karthik k
hi i have one page where i have check boxes , when i select one check box and click the below %= submit_to_remote 'activate', 'Activate', :url = {:action = 'search_activate'} % below is my check box %= check_box_tag agency[agencys_id][] , agency.id% it is not even going to controller in the

[Rails] Re: Doubt in submit_to_remote?

2009-08-10 Thread karthik k
-- Karthik.k Mobile - +91-9894991640 On Aug 10, 11:53 am, karthik k cse.k.kart...@gmail.com wrote: hi i have one page where i have check boxes , when i select one check box and click the below %= submit_to_remote 'activate', 'Activate', :url = {:action = 'search_activate

[Rails] Doubt in retrieving data to html?

2009-08-10 Thread karthik k
hi I have a controller def showagencies @getdata=Agency.all(:joins=:contracts, :select=agencies.*,:conditions=[contract_id in (?) and agencies.status =?,contracts.id,1 ]) end @getdata is not visible in html its lenght is o but has some contents plz let me know how to access this --

[Rails] Doubt in joins condition?

2009-08-10 Thread karthik k
hi I have two tables agencies contracts i have one statement like below @getdata=Agency.all(:joins=:contracts, :select=agencies.*,:conditions=[agencies.status =?,1 ]) i am able to access all data in agency but not able to access contracts data from above query please guide me how to do

[Rails] Re: Doubt in retrieving data to html?

2009-08-10 Thread karthik k
On Tue, Aug 11, 2009 at 10:18 AM, Marnen Laibow-Koser rails-mailing-l...@andreas-s.net wrote: Karthik Kantharaj wrote: [...] @getdata is not visible in html its lenght is o but has some contents Looks like @getdata contains an array. (And by the way, that's a terrible variable name

[Rails] Re: Doubt in retrieving data to html?

2009-08-10 Thread karthik k
On Tue, Aug 11, 2009 at 10:22 AM, karthik k cse.k.kart...@gmail.com wrote: On Tue, Aug 11, 2009 at 10:18 AM, Marnen Laibow-Koser rails-mailing-l...@andreas-s.net wrote: Karthik Kantharaj wrote: [...] @getdata is not visible in html its lenght is o but has some contents Looks like

[Rails] Re: Doubt in joins condition?

2009-08-10 Thread karthik k
On Tue, Aug 11, 2009 at 11:03 AM, Sijo Kg rails-mailing-l...@andreas-s.netwrote: And what are the relationships between these models? Sijo -- Posted via http://www.ruby-forum.com/. Hi Sijo It has the below relation has_and_belongs_to_many :contracts has_and_belongs_to_many :agencies

[Rails] Doubt retrieving data?

2009-08-08 Thread karthik k
hi my controller has def searchwithstatus @agency=params[:agency][:agency_id] @contract=params[:agency][:contracts_id] @agencies=Agency.find(:all,:conditions={:deleted=1,:contract_id=@contract,:state_id=@state}) end when i am executing the code in line 3 it is saying as *Mysql::Error:

[Rails] Re: Doubt retrieving data?

2009-08-08 Thread karthik k
On Sat, Aug 8, 2009 at 1:47 PM, James West rails-mailing-l...@andreas-s.net wrote: Karthik Kantharaj wrote: # *how can i access the contract_id which is in another table* :contract_id=#...@contract.id} hi James West Thank you @agencies=Agency.find(:all,:conditions={:deleted=1

[Rails] Re: About joinTable

2009-08-06 Thread karthik k
On Thu, Aug 6, 2009 at 10:58 AM, Sniper Abandon rails-mailing-l...@andreas-s.net wrote: Karthik Kantharaj wrote: On Thu, Aug 6, 2009 at 10:43 AM, Sniper Abandon rails-mailing-l...@andreas-s.net wrote: 2 name2 1 1 please guide me has_many

[Rails] Doubt in retrievind data from habtm?

2009-08-05 Thread karthik k
hi I have one table called agencies_contract i need to get data from this table agency_idcontract_id 11 so i need to display agency_id equivalent to 1 and contract_id equivalent to 1 this table has habtm relation how do i need to write query for this any idea Plz

[Rails] About joinTable

2009-08-05 Thread karthik k
Hi Below Table1: name_table idname 1 name1 2 name2 Table2:address_table id address 1 address1 2address2 jointable :name_address name_idaddress_id 1 1 2 2

[Rails] Re: About joinTable

2009-08-05 Thread karthik k
On Thu, Aug 6, 2009 at 10:22 AM, Sijo Kg rails-mailing-l...@andreas-s.netwrote: Hi Assume tables arenames, addresses So the junction table should be addresses_names by default This can be override if needed.. And the join table wont have id column This is

[Rails] Re: About joinTable

2009-08-05 Thread karthik k
On Thu, Aug 6, 2009 at 10:43 AM, Sniper Abandon rails-mailing-l...@andreas-s.net wrote: Karthik Kantharaj wrote: Hi Below Table1: name_table idname 1 name1 2 name2 Table2:address_table id address 1

[Rails] Help for Functional Testing?

2009-08-04 Thread karthik k
Hi Below is my functional test code def test_should_create_county assert_difference('County.count') do post :create, :county = {:name=myname,:description=mydesc,:region_id=3 } end assert_redirected_to county_path(assigns(:county)) end And error message i got is 29)

[Rails] Re: Help for Functional Testing?

2009-08-04 Thread karthik k
Hi Sijo Thank you but Still i find the same error Can you please say why this happens Any idea -- Karthik.k Mobile - +91-9894991640 On Tue, Aug 4, 2009 at 12:22 PM, Sijo Kg rails-mailing-l...@andreas-s.netwrote: Hi Can't say what happens only based on this. Anyway please change above

[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: Help for Functional Testing?

2009-08-04 Thread karthik k
On Tue, Aug 4, 2009 at 1:36 PM, Sijo Kg rails-mailing-l...@andreas-s.netwrote: Hi Check for any unsatisfied validations Sijo -- Posted via http://www.ruby-forum.com/. hi Sijo Ya i saw but no unsatisfied validations is there, i have one doubt in each controller, there is

[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 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

[Rails] Re: Help for Functional Testing?

2009-08-04 Thread karthik k
On Tue, Aug 4, 2009 at 1:53 PM, karthik k cse.k.kart...@gmail.com wrote: On Tue, Aug 4, 2009 at 1:36 PM, Sijo Kg rails-mailing-l...@andreas-s.netwrote: Hi Check for any unsatisfied validations Sijo -- Posted via http://www.ruby-forum.com/. hi Sijo Ya i saw but no unsatisfied

[Rails] Re: Help for Functional Testing?

2009-08-04 Thread karthik k
On Tue, Aug 4, 2009 at 4:05 PM, Sijo Kg rails-mailing-l...@andreas-s.netwrote: Just to know which version of rails r u using Please check this http://guides.rubyonrails.org/testing.html Sijo Hi Sijo I use 2.3.2 I use Aptana IDE Ya i saw the link when i started but i am not getting what

[Rails] Re: Help for Functional Testing?

2009-08-04 Thread karthik k
On Tue, Aug 4, 2009 at 4:36 PM, Sijo Kg rails-mailing-l...@andreas-s.netwrote: Yes as Fred said you need that and suppose if you are using a session varible person_id it can be done like for example in test_helper just write a def like def login_as(person) @request.session[:person_id]

[Rails] Re: Help for Functional Testing?

2009-08-04 Thread karthik k
On Tue, Aug 4, 2009 at 4:23 PM, Frederick Cheung frederick.che...@gmail.com wrote: On Aug 4, 9:23 am, karthik k cse.k.kart...@gmail.com wrote: On Tue, Aug 4, 2009 at 1:36 PM, Sijo Kg rails-mailing-l...@andreas-s.netwrote: Ya i saw but no unsatisfied validations is there, i have one

[Rails] Re: Hi doubt in unit testing

2009-08-03 Thread karthik k
-or-die-validates-uniqueness-of Please help -- Karthik.k Mobile - +91-9894991640 On Sat, Aug 1, 2009 at 6:43 PM, Colin Law clan...@googlemail.com wrote: 2009/8/1 karthik k cse.k.kart...@gmail.com: Hi colin On small help below is the code or checking for uniquness def

[Rails] Hi doubt in unit testing

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

[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 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
not getting error message in assert but getting error message please let me know whether i am right or wrong please help -- Karthik.k Mobile - +91-9894991640 On Sat, Aug 1, 2009 at 2:46 PM, karthik k cse.k.kart...@gmail.com wrote: hi Fred Thank you I will do the same -- Karthik.k

[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 karthik k
(:name=) end name should not be empty but as you said i displayed assert post.valid?, post.errors.full_messages But i am not getting error message in assert but getting error message On Sat, Aug 1, 2009 at 4:26 PM, Colin Law clan...@googlemail.com wrote: 2009/8/1 karthik k cse.k.kart

[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
-- Karthik.k Mobile - +91-9894991640 On Sat, Aug 1, 2009 at 4:56 PM, karthik k cse.k.kart...@gmail.com wrote: 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

[Rails] Doubt in nil object with ajax

2009-07-29 Thread karthik k
hi this is my htnl html head %= javascript_include_tag :defaults % /head body %= form_tag nil, { :id = 'search_form' } % %= text_field 'recipe', 'name' % %= end_form_tag % div id=recipe /div %= observe_form :search_form, :frequency = 0.5, :update = 'recipe', :url = { :action =

[Rails] Re: Doubt in nil object with ajax

2009-07-29 Thread karthik k
'recipe', 'name' % % end % works fine On 29 июл, 10:51, karthik k cse.k.kart...@gmail.com wrote: hi this is my htnl html head %= javascript_include_tag :defaults % /head body %= form_tag nil, { :id = 'search_form' } % %= text_field 'recipe', 'name' % %= end_form_tag % div id

[Rails] Re: Doubt in nil object with ajax

2009-07-29 Thread karthik k
Mobile - +91-9894991640 On Wed, Jul 29, 2009 at 2:06 PM, karthik k cse.k.kart...@gmail.com wrote: hi Rakoth Thank you Is there any good tutorial where i can search for text using ajax ruby on rails I am using rails 2.3.2 -- Karthik.k Mobile - +91-9894991640 On Wed, Jul 29, 2009 at 1

[Rails] Re: Doubt in nil object with ajax

2009-07-29 Thread karthik k
hi jhaagmans thank you i found myself I am very new to this ruby on rails, but i need support from you experts Thank you -- Karthik.k Mobile - +91-9894991640 On Wed, Jul 29, 2009 at 2:38 PM, jhaagmans jaap.haagm...@gmail.com wrote: Also, always check your code, maybe even get your hands

[Rails] Help for collection_select

2009-07-29 Thread karthik k
hi guys I need to have a static data in collection_select and pass it to backend as id and it should display as value -- Karthik.k Mobile - +91-9894991640 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on

[Rails] Re: Help For Testing ruby on rails?

2009-07-23 Thread karthik k
, :post = {:title=my,:body=my body } end but it is not adding to database please tell me 1. what unit test does 2. what functional test does -- Karthik.k Mobile - +91-9894991640 On Wed, Jul 22, 2009 at 7:55 PM, byrnejb byrn...@harte-lyne.ca wrote: On Jul 22, 12:54 am, Karthik Kantharaj

[Rails] Re: Help For Testing ruby on rails?

2009-07-23 Thread karthik k
Hi Thank you for your response I gone through the links and your explanation but frankly speaking i understood but not fully I have one doubt unit testing (For model) what it does?(According to my knowledge) 1. It inserts in to database an temporary data from fixtures something.yml when i run

[Rails] Re: aptana RadRails

2009-07-22 Thread Karthik Kantharaj
Roderick van Domburg wrote: Renzo wrote: Guys.. Have you used this IDE for RoR... Is it good to use for those who are starting for RoR.. I really want to learn RoR to learn new IT knowledge.. And I believe it would help me on my Web design and development project.. Just give me a tip if it's

[Rails] Re: Help For Testing ruby on rails?

2009-07-22 Thread Karthik Kantharaj
Sijo Kg wrote: To start with read http://guides.rubyonrails.org/testing.html Sijo Hi sijo Thank you I need to ask one thing how to add data to database and check As i am new to ruby on rails i dont know how to do this karthik.k -- Posted via http://www.ruby-forum.com/.

[Rails] About Error handler

2009-07-21 Thread karthik k
Hi I am new to ruby on rails I need to know one thing Is there any way to externalize all the error messages in one file and access -- Karthik.k Mobile - +91-9894991640 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[Rails] Re: About Error handler

2009-07-21 Thread Karthik Kantharaj
Evan C wrote: On Jul 21, 11:44�am, karthik k cse.k.kart...@gmail.com wrote: Hi I am new to ruby on rails I need to know one thing Is there any way to externalize all the error messages in one file and access -- Karthik.k Mobile - +91-9894991640 Do you mean the error messages from

[Rails] Help For Testing ruby on rails?

2009-07-21 Thread Karthik Kantharaj
Hi guys I am using Aptana IDE How to do unit testing is there any sample explaining this I got some tutorial but that is not complete as i am a beginner Please guide me karthik.k -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received

[Rails] Multi check box insertion

2009-07-16 Thread karthik rails
Hi guys i am new to this community is there any link to insert and update Multi check box Thanks karthik.k --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send

[Rails] Re: RailsXls Plugin Not Working

2008-12-29 Thread karthik
I Used Spreadsheet-excel gem to generate excel reports.The problem of dependencies is not there.It worked perfectly fine But anyway i want to know Why RailsXLS Plugin Not worked On Dec 27, 8:15 pm, karthik karthikeyanr2...@gmail.com wrote: Hi, I am using RailsXls Plugin to generate Excel

[Rails] Re: NameError: uninitialized constant Digest::SHA2

2008-12-29 Thread karthik
Just try the echo statement and check what it is printing in the model.May be the sha1 will be using Time.now function also in addtion to its own coding.The time that value is authenticated and the time when u are checking the authentication will be different The solution is if the sha1 is

[Rails] RailsXls Plugin Not Working With Rails(2.0.2,2.1.0,2.1.2)

2008-12-28 Thread karthik
Hi, I am using RailsXls Plugin to generate Excel Reports from Query Results in a Database I am using the Latest version of RailsXls I am using Rails 2.1.0.I Have Downloaded the Jdk Version 5.0.The other dependency Jakarta is supplied with the part of the package itself.So i didnt download it

[Rails] RailsXls Plugin Not Working

2008-12-27 Thread karthik
Hi, I am using RailsXls Plugin to generate Excel Reports I am using Rails 2.1.2 Version I Have installed Jdk 1.5 Also I am getting this error when i am trying to start my webrick server rails/activesupport/lib/active_support/dependencies.rb:493:in `const_missing': uninitialized constant in