[Rails] [JOBS Feedback Needed] Looking for Ruby on Rails newcomers who used to program in other languages
Hi Folks, I've been coding 7 years in C# Asp .Net/T-sql and recently transition to RoR 8 months ago. It feels hard to break into the industry without sufficient real-world work experience even though I've coded a site pre-seed funded by an accelerator in Sydney and built an iPhone app in Phonegap (with Javascript/HTML/CSS). What has been your experience in transitioning? How do you find non-senior roles to pay the bills? On this note, I always believe in solving problems creatively. I wonder what do people think of a marketplace Website whereby programmers who are learning/transitioning to another language can be hired and paid at junior rate? Besides solving my own problem, I think I can help others in the same shoe solve theirs too. Cheers, Fai -- 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 to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/4be7b1fb-0f30-41ef-bf82-f7e8fb742d63%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[Rails] Phonegap + Rails to render the views. How does Facebook Connect work then?
Hi everyone, I'm learning Phonegap and stumbled upon this solution which demonstrated that views can be dynamically rendered through Rails hosted on Heroku: - http://stackoverflow.com/questions/11713997/using-phonegap-as-a-native-container-for-a-rails-3-app It seems to be a good solution, but then I wonder how would Facebook Connect work here then since the FB button will also be rendered from Rails dynamically? Would it require Childbrowser plugin? Thank you! -- 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 to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/4c6ea21c-7cc2-4c92-bdf8-230066140d09%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Rails] Retrieve duration (in string format) from database and convert to Ruby syntax for calculation
Thanks for your help everyone. I ended up using Chronic Duration gem. https://github.com/hpoydar/chronic_duration On Sunday, September 22, 2013 3:58:58 PM UTC+8, Colin Law wrote: On 20 September 2013 08:30, Fai Wong wong...@gmail.com javascript: wrote: If I store 1.month as a string in the database, how do I convert 1.month into 1.month? This way I can use the 1.month value stored in database to perform the following calculation. Time.now + 1.month If you really feel you need to do this then you can store 1.month as a string and use eval 1.9.3p194 :007 delta = 1.month = 1.month 1.9.3p194 :008 Time.now = 2013-09-22 08:52:13 +0100 1.9.3p194 :009 Time.now + eval( delta ) = 2013-10-22 08:52:23 +0100 However if you do this be /very/ careful about what can get into the database as arbitrary code can be executed using eval and conceivably your machine could be hacked. I DO NOT recommend that you do this. If your requirement is for a delta with values such as 1 month 3 weeks and so on, then I suggest having two fields, one for the quantity and an enumerated value for the period (month, week and so on). Then work it out in code. Less efficient but /much/ safer. Colin -- 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-ta...@googlegroups.com javascript:. To post to this group, send email to rubyonra...@googlegroups.comjavascript:. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/a19f9925-f725-4cd5-9dfd-6c8c4b897bd6%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- 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 to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/9273b7f1-c2bc-4776-9ab1-25f77341af30%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[Rails] What is the best way to convert a currency string 'USD' to locale :en-US?
What is the best way to convert a currency string 'USD' to locale :en-US? Right now trying to make it flexible to show the money and symbol correctly based on the currency string (like 'USD' or 'AUD') stored against the user's record. I need to be able to do the following based on say 'GBP' string: %= number_to_currency(1234567890.506, :locale = :en-GB) % -- 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 to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/6a048984-c6e2-4d36-a947-96f3327a1f74%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[Rails] Retrieve duration (in string format) from database and convert to Ruby syntax for calculation
If I store 1.month as a string in the database, how do I convert 1.month into 1.month? This way I can use the 1.month value stored in database to perform the following calculation. Time.now + 1.month -- 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 to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/a19f9925-f725-4cd5-9dfd-6c8c4b897bd6%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[Rails] How to save values from Sortable Unordered List?
I've a sortable unordered list as follows. How do I use controller to detect this element and get the contents to save each LI item into a row in the database? ul id=show-items class=ui-sortable li id=todo-163span class=editable1. Good/span a href=# style=display: none;X/a/li li id=todo-190span class=editable2. Better/span a href=# style=display: none;X/a/li li id=todo-189span class=editable3. Best/span a href=# style=display: none;X/a/li /ul -- 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 to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/ab8e31a4-2025-4179-a258-7acb0b7d2e3b%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[Rails] Re: Learning Rails - Advice for development environment
Dropbox comes in handy too, this way you can do development anywhere. I haven't tried the Windows tools for RoR and prefer Mac style when it comes to RoR. On Wednesday, March 20, 2013 11:39:31 AM UTC+11, Fai Wong wrote: Hi Michael, I'm an ASP .Net dev guy for close to 7 years now and have always used PC. Last year I bought a Macbook on Gumtree and have recently found a lot of joy in programming Ruby on Rails using Terminal. I run VMware Fusion with Windows OS for my .Net dev but found myself doing less of that now. Sometimes I just power on my PC with windows and then remote desktop via Chrome. That worked well too. - Fai On Tuesday, March 19, 2013 6:46:31 AM UTC+11, Michael Armistead wrote: Hello, I have been learning Rails for several weeks now. I am working through Michael Hartl's tutorial and other various things. My question is basically regarding what type of environment to do my development in. First, some background: I have used different linux distros on and off throughout the years, so it was easy and familiar for me to set up my desktop computer with Mint and get rvm/rails etc installed and working correctly. No issues there. However, I went out and bought a laptop this last weekend; I have never installed any linux variant on a laptop, so when I did it was startling to find out how incredibly terrible the battery life / power management functions were. I was getting ~2 hours of life just doing simple web browsing. After spending an afternoon tweaking everything (using powertop, thinkfan etc), I was able to increase that marginally. Then, I had someone recommend that I use win7 as my host OS, and then use a VM for rails development. While doing some research, I came across Vagrant. I got it set up and installed using one of the boxes made for rails development, however I have not started using it yet. I guess the idea is still quite fresh regarding workflow. If I was using a standard VM with ubuntu or whatever, I would boot it up and do my work inside just as if it was the host OS. When it comes to Vagrant, I am a little more confused. Am I supposed to start my headless vagrant box, start all my services / rails server etc inside, but then have Sublime Text 2 on my host OS - and work out of the shared directory while just performing tests inside of the VM? I use Guard / Spork on my desktop - how do I set this up within Vagrant? I have read that some people have issues with it. Am I going to run into any problems down the line running windows as my OS for coding / the VM for testing and server? Well, I am rambling. This whole idea is just very fresh for me, so I am just looking for any feedback possible. I want to get my development environment set up as fast (but as stable) as possible, so I can get back to learning more rails! Thanks everyone, Michael -- 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 to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/p0YYRPx743EJ. For more options, visit https://groups.google.com/groups/opt_out.
[Rails] Re: Learning Rails - Advice for development environment
Hi Michael, I'm an ASP .Net dev guy for close to 7 years now and have always used PC. Last year I bought a Macbook on Gumtree and have recently found a lot of joy in programming Ruby on Rails using Terminal. I run VMware Fusion with Windows OS for my .Net dev but found myself doing less of that now. Sometimes I just power on my PC with windows and then remote desktop via Chrome. That worked well too. - Fai On Tuesday, March 19, 2013 6:46:31 AM UTC+11, Michael Armistead wrote: Hello, I have been learning Rails for several weeks now. I am working through Michael Hartl's tutorial and other various things. My question is basically regarding what type of environment to do my development in. First, some background: I have used different linux distros on and off throughout the years, so it was easy and familiar for me to set up my desktop computer with Mint and get rvm/rails etc installed and working correctly. No issues there. However, I went out and bought a laptop this last weekend; I have never installed any linux variant on a laptop, so when I did it was startling to find out how incredibly terrible the battery life / power management functions were. I was getting ~2 hours of life just doing simple web browsing. After spending an afternoon tweaking everything (using powertop, thinkfan etc), I was able to increase that marginally. Then, I had someone recommend that I use win7 as my host OS, and then use a VM for rails development. While doing some research, I came across Vagrant. I got it set up and installed using one of the boxes made for rails development, however I have not started using it yet. I guess the idea is still quite fresh regarding workflow. If I was using a standard VM with ubuntu or whatever, I would boot it up and do my work inside just as if it was the host OS. When it comes to Vagrant, I am a little more confused. Am I supposed to start my headless vagrant box, start all my services / rails server etc inside, but then have Sublime Text 2 on my host OS - and work out of the shared directory while just performing tests inside of the VM? I use Guard / Spork on my desktop - how do I set this up within Vagrant? I have read that some people have issues with it. Am I going to run into any problems down the line running windows as my OS for coding / the VM for testing and server? Well, I am rambling. This whole idea is just very fresh for me, so I am just looking for any feedback possible. I want to get my development environment set up as fast (but as stable) as possible, so I can get back to learning more rails! Thanks everyone, Michael -- 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 to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/KAllwo2DNtoJ. For more options, visit https://groups.google.com/groups/opt_out.
[Rails] The year is 2013. How is Rails VS. ASP .Net MVC 4 faring?
Hi, I'm not trolling here! I've been a .Net Web forms developer for 6 years now. Looking to build startups and considering RoR or ASP .Net MVC 4. I Googled and found most articles which compares the two date back to 2010. I suspect that NuGet have gone quite far by now but am not sure if it is as good as Gems yet. So I wonder if there is anyone here who has tried both and can give and objective comparison of the two. Cheers, Fai -- 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 to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/9aIpzY1LWN0J. For more options, visit https://groups.google.com/groups/opt_out.