Re: [Rails] What's a good way to temporarily store invalid records for validating when importing data?

2015-10-13 Thread Colin Law
On 13 October 2015 at 22:47, David McDonald wrote: > I get my data from a database that I have access to that is updated at > different points during the day. As far as having a custom validation > method, I have that. Here's a, hopefully, more descriptive example of what > is going on. > > I ha

Re: [Rails] Query MySQL DB

2015-10-13 Thread Colin Law
On 14 October 2015 at 04:21, Prashant Girennavar wrote: > I am pretty new to RoR . I am trying to seach for methods which can query > MySQL DB get the table data and display that table on a webpage. Seven days ago you asked a similar question. A number of people here made helpful suggestions wh

Re: [Rails] What's a good way to temporarily store invalid records for validating when importing data?

2015-10-13 Thread botp
On Wed, Oct 14, 2015 at 4:30 AM, David McDonald wrote: > Scenario 1: > Scenario 2: > Thoughts? Scenario 3: create a another database. dump the invalids there. kind regards --botp -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To uns

[Rails] Re: Having some problems getting my params to pass. Any help would be super appreciated..

2015-10-13 Thread shaun Sweet
in new invitations try changing <%= check_box_tag 'user_ids[]', user.id %> to <%= check_box_tag 'user_ids', user.id %> On Tuesday, October 13, 2015 at 1:46:28 PM UTC-7, Prkl8r wrote: > > I am trying to pass parameters from an "Events" controller, to an > "Invitations" controller and from the

Re: [Rails] Query MySQL DB

2015-10-13 Thread Vineeth B S
Hey Prashant http://guides.railsgirls.com/app/ Try to cover a the exercises of the guide and you will get a brief idea about how Rails works. Regards V On Wed, Oct 14, 2015 at 8:51 AM, Prashant Girennavar wrote: > I am pretty new to RoR . I am trying to seach for methods which can query > My

[Rails] Query MySQL DB

2015-10-13 Thread Prashant Girennavar
I am pretty new to RoR . I am trying to seach for methods which can query MySQL DB get the table data and display that table on a webpage. What are the methods we have for this in RoR? Pls suggest Thanks, -Prashant Girennavar. -- You received this message because you are subscribe

Re: [Rails] What's a good way to temporarily store invalid records for validating when importing data?

2015-10-13 Thread David McDonald
Thanks! On Tuesday, October 13, 2015 at 6:11:25 PM UTC-4, mode-x wrote: > > Since you don't have control over the originating data-source...like i > said Scenario 1 would work just fine. > > On Tue, Oct 13, 2015 at 10:47 PM, David McDonald > wrote: > >> I get my data from a database that I have

Re: [Rails] What's a good way to temporarily store invalid records for validating when importing data?

2015-10-13 Thread Emmanuel Abia
Since you don't have control over the originating data-source...like i said Scenario 1 would work just fine. On Tue, Oct 13, 2015 at 10:47 PM, David McDonald wrote: > I get my data from a database that I have access to that is updated at > different points during the day. As far as having a cus

Re: [Rails] What's a good way to temporarily store invalid records for validating when importing data?

2015-10-13 Thread David McDonald
I get my data from a database that I have access to that is updated at different points during the day. As far as having a custom validation method, I have that. Here's a, hopefully, more descriptive example of what is going on. I have my Rails app, and I import records into that database on

Re: [Rails] What's a good way to temporarily store invalid records for validating when importing data?

2015-10-13 Thread Emmanuel Abia
You don't need to create another table also. You just need a custom validation method that handles the checking of the imported data. And in a before_save this can be implemented. Also If there is an error send a notification to the owner of the record via email or when next the user tries to acces

Re: [Rails] What's a good way to temporarily store invalid records for validating when importing data?

2015-10-13 Thread Emmanuel Abia
Avoid BY ALL MEANS any procedure that might complicate maintenance for you both short term and long term. I would advice you that you reconsider the approach. Rails has good validation methods that will make your programming life sweet and fun. What you are doing doesn't seem like fun to me. With R

Re: [Rails] What's a good way to temporarily store invalid records for validating when importing data?

2015-10-13 Thread David McDonald
Yes, I agree I just didn't want to have to create an additional model for each of these models I would be importing and everything that would go with that. I think what would likely work is I can create a table in between my application table and the table I'm importing data from. On that tabl

[Rails] Having some problems getting my params to pass. Any help would be super appreciated..

2015-10-13 Thread Matt Puerkel
I am trying to pass parameters from an "Events" controller, to an "Invitations" controller and from the Invitations#new to the Invitations#create views. I think I'm pretty close to getting this wrapped up bit keep getting: "param is missing or the value is empty: " errors when I run it. In

Re: [Rails] What's a good way to temporarily store invalid records for validating when importing data?

2015-10-13 Thread Emmanuel Abia
Generally speaking i think you should NOT just allow invalid records AT ALL. For the record to be saved the user MUST ENSURE that the relevant information are valid. On Tue, Oct 13, 2015 at 9:30 PM, David McDonald wrote: > I'm currently trying to setup daily processes that will import informatio

[Rails] What's a good way to temporarily store invalid records for validating when importing data?

2015-10-13 Thread David McDonald
I'm currently trying to setup daily processes that will import information into my database. I have many records that fail validations, and for the most part I have methods that attempt to auto-correct them and re-save, but there are some more complex scenarios that require a user to correct so

[Rails] Re: Running a Ruby Script from Rails controller kills the rails server

2015-10-13 Thread Matt Jones
On Tuesday, 13 October 2015 07:56:28 UTC-4, Sam S wrote: > > I am trying to run a ruby script from my rails controller. > The script runs successfully when the rails server is started normally as > > rails s thin -e development > > But when rails server is started as a daemon, the ruby scri

[Rails] Re: Endless scroll

2015-10-13 Thread andy nutter-upham
Railscasts is now premium content. Perhaps you could provide a bit more context. http://railscasts.com/episodes/114-endless-page-revised?view=asciicast As a User Experience side note, please be sure that infinite scroll is appropriate. Depending on the goals of your user it can be a frustrating

Re: [Rails] Can we create Kisok apps using ROR

2015-10-13 Thread andy nutter-upham
As Norbert suggests this is a User Agent (browser) feature. Have a look at these configurations for linux/chrome and linux/firefox. http://askubuntu.com/questions/124759/customize-ubuntu-for-a-library-internet-kiosk On Tuesday, October 6, 2015 at 4:38:35 PM UTC-4, Norbert Melzer wrote: > > Kiosk

[Rails] Re: Running a Ruby Script from Rails controller kills the rails server

2015-10-13 Thread Frederick Cheung
On Tuesday, October 13, 2015 at 12:56:28 PM UTC+1, Sam S wrote: > > Inside the controller the ruby script is run with the **exec** command. > > script_exec = exec("ruby > /Code/AttendanceReport/attn/bin/scripts/Spreadsheet_proper.rb '#{city}' > '#{date1}' '#{date2}'") > > > exec replace

[Rails] Running a Ruby Script from Rails controller kills the rails server

2015-10-13 Thread Sam S
I am trying to run a ruby script from my rails controller. The script runs successfully when the rails server is started normally as rails s thin -e development But when rails server is started as a daemon, the ruby script fails to run. rails s thin -e development -d Inside the contr

[Rails] [JOBS] Direct Hire - Remote Ruby-on-Rails Developer

2015-10-13 Thread James Harris
Hi Guys, We are currently looking for a Developer to join a fast paced technology start-up transforming the way large organisations organise their employees and match them to work/projects, in the process helping them become far more agile and more engaging workplaces. We are seeking a De

Re: [Rails] [Rails 3.2] How to extend a gem model

2015-10-13 Thread Chirag Jain
Try adding require n include statement -- 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 grou