[Rails] How to save xml values to mysql database

2013-06-25 Thread keerthi priya
Hi All, I have a xml and I have to save those values into my mysql database using ruby1.87. How can I do it. Kindly guide me how can I get values and save them. Thanks in advance Cheers, Kp -- You received this message because you are subscribed to the Google Groups Ruby on

[Rails] Singapore based CTO/ Co Founder needed

2013-06-25 Thread Goders
, Hello Rubysts We are an online global marketplace start-up founded by well experience ecommerce and retail expert INSEAD graduate. We are looking for a CTO to join our team and lead the technological development. What you need for this position: - BA/BS degree – CS/EE/Engineering degree

[Rails] Tutorials for beginner

2013-06-25 Thread r@ilsman
I am learning ROR Please suggest good rails sample applications. Thanks. -- 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

Re: [Rails] How to save xml values to mysql database

2013-06-25 Thread Tamara Temple
keerthi priya emailtokeerthipr...@gmail.com wrote: I have a xml and I have to save those values into my mysql database using ruby1.87. How can I do it. Kindly guide me how can I get values and save them. This really is not anywhere near enough of a description to determine what you want. Are

Re: [Rails] [HELP] Couldn't find Search with id= from controller

2013-06-25 Thread Tamara Temple
cornelius wilson li...@ruby-forum.com wrote: I have been working on the search form for my app. The advanced search works fine, however I am unable to get the regular search form to work. It should be able to search the entire user database, and I should be able to string keywords together.

[Rails] Re: How to create a two dimensional table

2013-06-25 Thread Saro V.
If the content of Col1 and Col2 is dynamic? I have this MODEL - class Forecast ActiveRecord::Base belongs_to :employee belongs_to :prefshift attr_accessible :employee_id, :giorno, :prefshift_id end

[Rails] Correct use of before_validation

2013-06-25 Thread Joel Pearson
I'm using Rails 3.2.13 with Ruby 2.0.0 I have a field in a form called hours which normally passes a numerical value. However, my users also want the option to pass time values, like 01:15, 00:25, :05, etc. I've tried to allow for this sort of thing with the below code: __ validates

[Rails] Re: Correct use of before_validation

2013-06-25 Thread Joel Pearson
I've managed to get the event to fire now, but what I get from STDOUT is 0.0 So I guess that means I'm not receiving a string from input. before_validation :convert_hours protected def convert_hours STDOUT hours if hours hours =~ /:/ hrs, mins = hours.scan(

[Rails] Re: Correct use of before_validation

2013-06-25 Thread Joel Pearson
Catching that 0.0 value was the right direction to look in: def convert_hours if hours_before_type_cast hours_before_type_cast =~ /:/ hrs, mins = hours_before_type_cast.scan( /(\d*):(\d*)/ ).first self.hours = BigDecimal( ( hrs.to_f + ( mins.to_f / 60.0 ) ), 4 ) end end

[Rails] Re: [HELP] Couldn't find Search with id= from controller

2013-06-25 Thread cornelius wilson
I have it as a model to save all the searches to database. Originally I thought it would be good to have information on what users are searching for on a dating app, though I have back away from this in recent weeks. I just haven't removed it as I don't want to break the app. Searches table

[Rails] Select box 4 Tables

2013-06-25 Thread Marco Gergen
Hello and sry for my english. I have no idea what can i do with my problem. I hope everybody can help me. I have 4 Tables. Table A a_id Table B b_id a_id c_id Table C c_id d_id Table D d_id whit the table-association A 1--n B n--1 C n--1 D In my View i have a f.select for the association

Re: [Rails] Re: Ruby On Rails integrate with Object C

2013-06-25 Thread Scott Ribe
On Jun 24, 2013, at 11:50 AM, haxuan lac wrote: I don't konw how to use this method in ROR You can't (without writing a gem, which would only run on iOS/OSX), you use them from an Objective-C app. The problem is that your question was extremely vague, some kind person tried to guess what your

Re: [Rails] How to restart AR transaction?

2013-06-25 Thread Scott Ribe
Look at the actual SQL in the logs. On Jun 3, 2013, at 9:01 PM, Ken Ip wrote: Thanks for the reply, Scott. Can you show me how? I've tried per this but it still doesn't work. self.transaction do bar = create(params) rescue nil raise ActiveRecord::Rollback unless bar end unless

[Rails] attr :location_string

2013-06-25 Thread Christopher Frost
Hi, I have come across attr :location_string inside a class definition in Rails application. class Web class Params attr :location_string def end end I know how attr_accessor, attr_reader or attr_writer works. But I don't have any idea on attr in Rails. Can you kindly

[Rails] cap deploy:setup fails

2013-06-25 Thread John Merlino
I run cap deploy:setup And towards the end, I see the following issues: ** [out :: xxx.xx.xx.132] Unrecognized command line flag: '--autolibs=read-only' ( see: 'rvm usage' ) ** [out :: xxx.xx.xx.134] Already installed ruby-1.9.3-p0. ** [out :: xxx.xx.xx.134] To reinstall use:

[Rails] Re: How to save xml values to mysql database

2013-06-25 Thread Matt Jones
On Tuesday, 25 June 2013 00:01:54 UTC-7, keerthi priya wrote: Hi All, I have a xml and I have to save those values into my mysql database using ruby1.87. How can I do it. Kindly guide me how can I get values and save them. Use Ruby. :) But seriously, you're going to have to

Re: [Rails] Tutorials for beginner

2013-06-25 Thread Colin Law
On 25 June 2013 06:50, r@ilsman rabindranath.prit...@heymath.com wrote: I am learning ROR Please suggest good rails sample applications. Work right through a good tutorial such as railstutorial.org, which is free to use online, and also the Rails Guides. Colin Thanks. -- You received this

Re: [Rails] Re: How to create a two dimensional table

2013-06-25 Thread Colin Law
On 25 June 2013 10:48, Saro V. li...@ruby-forum.com wrote: If the content of Col1 and Col2 is dynamic? Did you realise that you have replied to a thread from 2009? I hope the OP has not been waiting all this time for an answer. Colin -- You received this message because you are subscribed to

Re: [Rails] [HELP] Couldn't find Search with id= from controller

2013-06-25 Thread Colin Law
On 24 June 2013 20:05, cornelius wilson li...@ruby-forum.com wrote: I have been working on the search form for my app. The advanced search works fine, however I am unable to get the regular search form to work. It should be able to search the entire user database, and I should be able to

[Rails] creating an account with a username in devise

2013-06-25 Thread monte olvera
Hello, all. I have followed these links and have enabled a (current) user to login with a username: http://railscasts.com/episodes/209-introducing-devise http://railscasts.com/episodes/210-customizing-devise

Re: [Rails] creating an account with a username in devise

2013-06-25 Thread Dave Aronson
On Tue, Jun 25, 2013 at 5:06 PM, monte olvera li...@ruby-forum.com wrote: I want to allow a user to sign up with a username but am getting these errors and don't know how to proceed. Notice the 'Email can't be blank' error, even though I'm not wanting to accept an email for authentication.

[Rails] Re: creating an account with a username in devise

2013-06-25 Thread monte olvera
Did you remember to set config.authentication_keys = [:username] in the initializer? Show us at least the non-commented-out lines. $ grep -v \# config/initializers/devise.rb |grep . Devise.setup do |config| config.mailer_sender = password_re...@gloryhouseofprayer.com require

[Rails] Re: creating an account with a username in devise

2013-06-25 Thread monte olvera
Here are the logs I get from rack when submitting the 'sign up' form: Started POST /users for 127.0.0.1 at 2013-06-25 19:50:18 -0400 Processing by Devise::RegistrationsController#create as HTML Parameters: {utf8=✓, authenticity_token=tltbt2w5FkZQbkbLqYaZIPiqk3J7VsdQIvKWFDCYLAs=,

[Rails] SAVON - Call

2013-06-25 Thread Otavio Nestares
** I have this method on a web service I'm consuming, using SAVON 3 on Rails 3 and Ruby 1.9.7 web app soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; xmlns:tem=http://tempuri.org/; xmlns:gpa=http://schemas.datacontract.org/2004/07/Gpa.Comercio.Servicos.Contracts.DTO;

Re: [Rails] Re: creating an account with a username in devise

2013-06-25 Thread Dave Aronson
On Tue, Jun 25, 2013 at 7:48 PM, monte olvera li...@ruby-forum.com wrote: Did you remember to set config.authentication_keys = [:username] in the initializer? Show us at least the non-commented-out lines. $ grep -v \# config/initializers/devise.rb |grep . Ah, we're obviously not dealing

[Rails] Re: Re: creating an account with a username in devise

2013-06-25 Thread monte olvera
first of all, thanks man for helping me, I really appreciate it! Ah, we're obviously not dealing with a total programming-newbie here! :-) :) I said I was new to Ruby, not to programming. Started with Qbasic on my commodore back in 1995 when I was 10. I know Assembly, C/C++, Python, Shell,

[Rails] Re: creating an account with a username in devise

2013-06-25 Thread monte olvera
that 'email' reference search looked lousy posting it directly, so here it is in an attached file. Attachments: http://www.ruby-forum.com/attachment/8541/rails_app_email_references -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google

[Rails] Re: Relational DB - Related and not Related

2013-06-25 Thread Cameron Gilroy
Here is an update, I have it working as only a group or as only a non-group user. I have below the create controller and was wondering what would be the best way to allow associations and non-associated records. Thanks def create if Group.nil? @group = Group.find(params[:group_id])

[Rails] Capistrano Git SSH problem

2013-06-25 Thread news.anand11
Hi, I am using Capistrano for deployment. And bitnami in my ec2 linux instance. I have configured Capistrano for deployment and deploy:check says all is fine. But I am facing problem while doing deploy. Here is the full stack $ cap deploy:check triggering load callbacks * 2013-06-26

Re: [Rails] Capistrano Git SSH problem

2013-06-25 Thread aman mangal
Hi, You can use your local keys too! have a look here- https://help.github.com/articles/deploying-with-capistrano Aman Mangal 3rd year Undergraduate Department of Computer Science Engineering IIT Bombay www.cse.iitb.ac.in/~amanmangal On Wed, Jun 26, 2013 at 8:54 AM, news.anand11