[Rails] Re: Morons in our midst (re: important news)

2014-05-28 Thread Frederick Cheung
On Wednesday, May 28, 2014 4:17:26 AM UTC+1, Ken D'Ambrosio wrote: Hi, all. I'm not a frequent contributor -- I'm just ramping up on Rails. But I've been on the 'Net for quite some time. And back in the days of yore, on Usenet, we had moderated lists. In much the same vein, I suggest

[Rails] Re: Rails 4: routing error when mounting an engine in a Rails app as explained in Rails guides

2014-05-28 Thread durga prasad
Can you please explain , how to add typo ? On Sunday, 29 September 2013 02:07:51 UTC+5:30, Javix wrote: It is fixed, I just had a typo in engine route. :). On Saturday, September 28, 2013 10:14:26 PM UTC+2, Javix wrote: I followed steps on Rails guides on

[Rails] Re: Beginner's routing question: Redirecting to a different controller

2014-05-28 Thread Ronald Fischer
Thank you for the suggestions. I went through the tutorial found on the web (which was explaining the concepts using the example of making a blog site), but could relate what I have learned, only to the concept of the idioms in my project, but not to the rest of my application. I now see that

Re: [Rails] Re: Rails 4: routing error when mounting an engine in a Rails app as explained in Rails guides

2014-05-28 Thread Serguei Cambour
I did NOT mean typo as Typo Softwarehttp://en.wikipedia.org/wiki/Typo_(software) but the one as Typographical errorhttp://en.wikipedia.org/wiki/Typographical_error :) On 27 May 2014 12:21, durga prasad prasadmca...@gmail.com wrote: Can you please explain , how to add typo ? On Sunday, 29

[Rails] Re: [JOBS] [Remote] Excellent Rails (full stack) developer required

2014-05-28 Thread Sunil Kumar
Hi, I am sunil kumar.I have 3 years ruby on rails development experience.I am looking part time ruby on rails job. Thanks Sunil On Wednesday, May 21, 2014 12:14:16 AM UTC+5:30, Ruby-Forum.com User wrote: I run a small consulting company based in London, UK. I am looking to employ an

[Rails] Re: [JOBS] Junior RoR developer (remotely)

2014-05-28 Thread Sunil Kumar
Hi, I am very interested with this job.Please contact me 7696099799 Thanks sunil On Sunday, May 18, 2014 12:42:34 AM UTC+5:30, Ruby-Forum.com User wrote: Hi guys, The company I'm contracting at is looking for: Junior Ruby on Rails developer Requirements: * experience with

[Rails] SPECIALS RELATIONSHIP!?

2014-05-28 Thread Simon Eric
i want to associate one model with 4 models. For example i call a first model Spectacle and call others Hall1, Hall2, Hall3 and Hall4. All of Halls have the same attributes: id and seat. Each Hall have 10 seats. I want to create an spectacle on the database and associate it with any Hall.

Re: [Rails] Re: HTTPI::SSLError - Plz help

2014-05-28 Thread Usha Murali
Hi plz see below for the ssl doctor script output: export SSL_CERT_FILE=/usr/lib/ssl/cert.pem export SSL_CERT_DIR=/usr/lib/ssl *ruby doctor.rb localhost* */usr/local/bin/ruby (1.8.7-p330)* *OpenSSL 0.9.8k 25 Mar 2009: /usr/lib/ssl* *SSL_CERT_DIR=/usr/lib/ssl*

Re: [Rails] SPECIALS RELATIONSHIP!?

2014-05-28 Thread Colin Law
On 28 May 2014 14:30, Simon Eric li...@ruby-forum.com wrote: i want to associate one model with 4 models. For example i call a first model Spectacle and call others Hall1, Hall2, Hall3 and Hall4. All of Halls have the same attributes: id and seat. Each Hall have 10 seats. I want to create

Re: [Rails] SPECIALS RELATIONSHIP!?

2014-05-28 Thread Jesse Knutsen
does each hall have to be specifically designated as hallx? and do halls exist independently of spectacle? Assuming that halls exist independently, it sounds like having a join table and position attributes on the join should work spectacle has_many :halls spectacle_hall_join

[Rails] Re: Beginner's routing question: Redirecting to a different controller

2014-05-28 Thread mike2r
On Wednesday, May 28, 2014 2:55:59 AM UTC-4, Ruby-Forum.com User wrote: Thank you for the suggestions. I went through the tutorial found on the web (which was explaining the concepts using the example of making a blog site), but could relate what I have learned, only to the concept of

[Rails] Re: SPECIALS RELATIONSHIP!?

2014-05-28 Thread Simon Eric
Thank you very much Jesse! -- 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: SPECIALS RELATIONSHIP!?

2014-05-28 Thread Simon Eric
Thank you very much Colin. I will try that :) -- 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] Recover select value

2014-05-28 Thread Fab Forestier
I have in my view a select td%= select :nomdefaut, @mydefaut, @ndefaut%/td I see the different values of @ndefaut but then but then @mydefaut is supposed to contain the selected value in the list but when I display @mydefaut in the view my text field is blank. I see that we can use

Re: [Rails] Recover select value

2014-05-28 Thread Jesse Knutsen
have you tried accessing through params[:nomdefaut] On 5/28/14, 10:55 AM, Fab Forestier wrote: I have in my view a select td%= select :nomdefaut, @mydefaut, @ndefaut%/td I see the different values of @ndefaut but then but then @mydefaut is supposed to contain the selected value in the list but

[Rails] Re: Recover select value

2014-05-28 Thread Frederick Cheung
On Wednesday, May 28, 2014 3:56:21 PM UTC+1, Ruby-Forum.com User wrote: I have in my view a select td%= select :nomdefaut, @mydefaut, @ndefaut%/td I see the different values of @ndefaut but then but then @mydefaut is supposed to contain the selected value in the list but when I

Re: [Rails] Re: HTTPI::SSLError - Plz help

2014-05-28 Thread Matt Jones
On Wednesday, 28 May 2014 08:31:41 UTC-5, Usha wrote: Hi plz see below for the ssl doctor script output: export SSL_CERT_FILE=/usr/lib/ssl/cert.pem export SSL_CERT_DIR=/usr/lib/ssl *ruby doctor.rb localhost* */usr/local/bin/ruby (1.8.7-p330)* *OpenSSL 0.9.8k 25 Mar 2009:

[Rails] Re: SPECIALS RELATIONSHIP!?

2014-05-28 Thread Simon Eric
Colin i try what you tell me. It work find. Thank very much. The next step is that: if an user choice the seat on the hall, it must not be appear againt on the view. I have some view like this: %= form_tag( riepilogo_path, method: post, id: sel) do % %= hidden_field_tag sala, params[:sala]

Re: [Rails] Re: SPECIALS RELATIONSHIP!?

2014-05-28 Thread Colin Law
On 28 May 2014 17:22, Simon Eric li...@ruby-forum.com wrote: Colin i try what you tell me. It work find. Thank very much. The next step is that: if an user choice the seat on the hall, it must not be appear againt on the view. I guess you are a beginner with rails, if so I suggest that you

[Rails] Re: Beginner's routing question: Redirecting to a different controller

2014-05-28 Thread Ronald Fischer
mike2r wrote in post #1147433: On Wednesday, May 28, 2014 2:55:59 AM UTC-4, Ruby-Forum.com User wrote: -- Posted via http://www.ruby-forum.com/. When you get to the point where you are going to use password authentication, re-read the user authentication part of the tutorial. Thanks, I

[Rails] Re: Re: SPECIALS RELATIONSHIP!?

2014-05-28 Thread Simon Eric
Please i try this: @postis.update_column(stato: checked) but i have error like so: undefined method `update_column' for #Array:0xb7a50e8 -- 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

Re: [Rails] Re: Re: SPECIALS RELATIONSHIP!?

2014-05-28 Thread Colin Law
On 28 May 2014 18:00, Simon Eric li...@ruby-forum.com wrote: Please i try this: @postis.update_column(stato: checked) but i have error like so: undefined method `update_column' for #Array:0xb7a50e8 What do you think the type of @postis is? Colin -- You received this message because you are

[Rails] Re: videojs and rails

2014-05-28 Thread Pierre-Andre M.
I tried copy/pasting a sample video.js script straight from tutorial in a js file titled play_time.js in /assets/javascript that looks like this: !doctype html head titleVideo.JS Example/title link href=//vjs.zencdn.net/4.1/video-js.css rel=stylesheet script

Re: [Rails] Re: videojs and rails

2014-05-28 Thread Hassan Schroeder
On Wed, May 28, 2014 at 12:22 PM, Pierre-Andre M. li...@ruby-forum.com wrote: I tried copy/pasting a sample video.js script straight from tutorial in a js file titled play_time.js in /assets/javascript that looks like this: !doctype html head titleVideo.JS Example/title

[Rails] Re: videojs and rails

2014-05-28 Thread Pierre-Andre M.
Understood... Here is some pure js that I substituted into the file as well and it does not render either. var endtime = 10505.89+10; myPlayer= document.getElementById('example_video_1'); myPlayer.addEventListener('loadeddata', function(){ example_video_1.currentTime = 10505.89;

Re: [Rails] videojs and rails

2014-05-28 Thread Walter Lee Davis
You've already done what you need to do -- you have a matching ID in the view and the JS ('example_video_1'). The only thing you need to ensure now is that you either have an unobtrusive listener function set to encapsulate the VideoJS script, or you load the VideoJS script after the video is

Re: [Rails] Re: videojs and rails

2014-05-28 Thread Hassan Schroeder
On Wed, May 28, 2014 at 1:01 PM, Pierre-Andre M. li...@ruby-forum.com wrote: myPlayer= document.getElementById('example_video_1'); My question is, how do I get that elementID through my view back to this js file? video id=example_video_1 ... ? It appears to already be there... --

[Rails] Re: videojs and rails

2014-05-28 Thread Pierre-Andre M.
Walter...thanks for your responses! Do I not already have that here: myPlayer.addEventListener('loadeddata', function(){... ?? For the record the javascript that i have written there works great within its own flatfile. I just can't get it to render within rails so I know the code works...

Re: [Rails] videojs and rails

2014-05-28 Thread Walter Lee Davis
Do you have this on a public server somewhere, so we can see it in a browser (and more properly, in a JavaScript debugger)? You have all the piece in place, getting them to work together is an implementation detail and a debugging exercise. You are very close. Walter On May 28, 2014, at 4:27

[Rails] Re: Re: Re: SPECIALS RELATIONSHIP!?

2014-05-28 Thread Simon Eric
@postis is an string. Now i see where i the problem. I fix them like so: def posti_multiple @postis = Posti.find(params[:posti_ids]) a=Posti.find_by(numero: params[:posti_ids]) a.update_column(:stato, checked) end When i have for example posti_ids[ any number], one seat

[Rails] OT: Squashing Git commits AFTER pushing them

2014-05-28 Thread Jason Hsu, Rubyist
BACK STORY: I'm working on the rubygems.org site. So far, all I've done is fill in the missing details on setting up the project. (The only two files I've changed are config/database.yml.example and CONTRIBUTING.md.) I forked the project, made changes, pushed them, and submitted a pull

Re: [Rails] OT: Squashing Git commits AFTER pushing them

2014-05-28 Thread Benjamin Iandavid Rodriguez
Check the number of commits in your PR and do the following: $ git reset --soft HEAD~number_of_commits_in_pr $ git commit -m some message $ git push --force origin your_branch Your commits should be updated on the pull request also. Hope this helps. 2014-05-28 14:51 GMT-07:00 Jason Hsu,

[Rails] Looking for some remote job

2014-05-28 Thread femto Zheng
Hello, I have some extra time in my current project, my current project is in maintenance mode and only take a few hours a day, so I can spare several hours a day for new project. I'm a skilled developer with 4 years of Java/J2EE enterprise development experience and 6 years of Ruby/Rails

Re: [Rails] Looking for some remote job

2014-05-28 Thread greatghoul
https://weworkremotely.com/ On Thursday, May 29, 2014, femto Zheng femto...@gmail.com wrote: Hello, I have some extra time in my current project, my current project is in maintenance mode and only take a few hours a day, so I can spare several hours a day for new project. I'm a skilled

Re: [Rails] OT: Squashing Git commits AFTER pushing them

2014-05-28 Thread Jason Hsu, Rubyist
Thanks. This worked. Next time, I'm creating and switching to another branch. On Wednesday, May 28, 2014 5:10:13 PM UTC-5, Ian_Rgz wrote: Check the number of commits in your PR and do the following: $ git reset --soft HEAD~number_of_commits_in_pr $ git commit -m some message $ git push

[Rails] How to make the tests pass in an elegant way? Ruby on Rails

2014-05-28 Thread James M.
I am writing a rails app with my colleague who wrote a lot of the tests. He had to take a leave of absence due to a death in his family, and I am needing helps with changing the model so that the tests will pass in our spec file. Here is the model: class Worker ActiveRecord::Base

[Rails] Re: [JOBS] Junior RoR developer (remotely)

2014-05-28 Thread Garth Gaughan
I sent you an email about this post, look forward to hearing from you. Garth On Saturday, May 17, 2014 12:12:34 PM UTC-7, Ruby-Forum.com User wrote: Hi guys, The company I'm contracting at is looking for: Junior Ruby on Rails developer Requirements: * experience with building

[Rails] Integration of UPS shipping related APIs

2014-05-28 Thread Keith Poveda
I've seen several old posts referring to the integration of some of the UPS APIs. Those posts with sample code are sooo dated that the UPS production URL's are way out of date...and I don't know what other changes UPS has made which may make ShippingLogic (deprecated) or Ruby Shipping

[Rails] How to make these simple tests pass in an elegant way? Ruby on Rails

2014-05-28 Thread Star Track
I am writing a rails app with my colleague who wrote a lot of the tests. He had to take a leave of absence due to a death in his family, and I am needing helps with changing the model so that the tests will pass in our spec file. Here is the model: class Worker ActiveRecord::Base

[Rails] Sharing Rails 4 session with a Rails 4.1 App

2014-05-28 Thread Jordan Humphreys
Hello Folks, I'm curious if it is possible to share a Rails 4 session with a Rails 4.1 application with the same secret key base on the same domain name. This works with Rails 4 to Rails 4 but it appears that my cookies are being encrypted differently between the two versions. Any ideas?

[Rails] live streaming picture wihout refresh

2014-05-28 Thread Ovunc Yildirim
Hello, application creates a picture and I need to send this created picture to client without refresh. if client rotates the picture new generated one should be send from backend and new generated image should be updated in place. Can I use rails live streaming for this set up? maybe encode

[Rails] Re: Not able to test cron job in development using Whenever gem in rails 3

2014-05-28 Thread Ankur Kumar
Any help on this will be greatly appreciated! Thanks. -- Regards, Ankur On Wed, May 28, 2014 at 10:18 AM, Ankur Kumar specialan...@gmail.comwrote: I did the following to implement cron jobs in rails 3 using a runner instead of a rake task. *Step 1:* I have whenever gem installed and