[Rails] i need some help!!! how to solve this problem. urgent!!!!!

2015-04-17 Thread Wei Qiang
1. What is one major concern of the following code and how would you improve it? class BookController ApplicationController def rename @book = Books.find(params[:id]) if @book.update_attribute(:title, sanitize(params[:title])) format.json { render json: { status:

[Rails] hash keys, symbolize_keys and sintrigify_keys

2015-04-17 Thread André Orvalho
Hey guys, I had recently a very weird experience. I have a Loader class that run's a lot of different things on Active Record objects. One thing this loader does, is to preload data based on each classes settings. so basically: scope.preload(preloads) scope has a collection of Active Record

Re: [Rails] Re: japanese input

2015-04-17 Thread botp
On Fri, Apr 17, 2015 at 9:58 AM, Cristiano de Araujo Bezerra webofb...@gmail.com wrote: case key when 'a' print #{vowels['a']} when 'i' print #{vowels['i']} when 'u' print #{vowels['u']} when 'e' print #{vowels['e']} when 'o' print #{vowels['o']} when

Re: [Rails] i need some help!!! how to solve this problem. urgent!!!!!

2015-04-17 Thread Colin Law
On 17 April 2015 at 07:00, Wei Qiang breakthrough...@gmail.com wrote: What is one major concern of the following code and how would you improve it? The purpose of this list to help those who have problems, not to do their course work for them. Colin -- You received this message because you

Re: [Rails] i need some help!!! how to solve this problem. urgent!!!!!

2015-04-17 Thread Dave Aronson
It's so urgent because your homework is due today? Odd that you think we're stupid enough to fall for that, yet smart enough to be able to help you. -- Dave Aronson, consulting software developer of Codosaur.us, PullRequestRoulette.com, Blog.Codosaur.us, and Dare2XL.com. -- You received this

[Rails] Re: i need some help how to solve this problem. urgent!

2015-04-17 Thread Ivan Lasorsa
Lucky boy, we didn't use Ruby at school. -- 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

Re: [Rails] Test for contact form not working.

2015-04-17 Thread Colin Law
On 17 April 2015 at 17:16, nick...@gmail.com wrote: I'm working with Rails 4 and have developed a test that is failing and I don't understand why. test message content do Try a puts messages(:two).inspect at this point to get more clues as to what is happening. Colin message =

[Rails] {Forgive if writing to wrong Group}: Announcing my Ruby on Rails site...

2015-04-17 Thread Elizabeth McGurty
Greetings to all! I am a contributor to gitHub. My most recent ROR contributions to gitHub has been at the App level from my new web-site: www.echomarket.org. I think that some of you will find some interesting code there: edit, reuse, and new in a single form; Search with an interesting

[Rails] Re: Bundle install muy lento

2015-04-17 Thread Sebastián Campetella
Tengo el mismo inconveniente en este momento y no encuentro solución.. El jueves, 16 de abril de 2015, 17:21:33 (UTC-3), Ruby-Forum.com User escribió: Instale ruby 2.1.0 mediante rbenv y tanto las instalaciones de cada versión, como realizar un blundle install tardan mucho tiempo (horas)

[Rails] Test for contact form not working.

2015-04-17 Thread nickk40
I'm working with Rails 4 and have developed a test that is failing and I don't understand why. test message content do message = messages(:two) mail = MessageMailer.new_message(message) assert_equal Message from #{message.name}, mail.subject

[Rails] Re: Error installing therubyracer

2015-04-17 Thread Karen Carias
There's an official Omnibus package for the RPi2, see 'Omnibus package for Raspberry Pi 2' on https://about.gitlab.com/installation/ -- 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

Re: [Rails] Re: japanese input

2015-04-17 Thread Cristiano de Araujo Bezerra
https://github.com/webofbits/rom2jap https://www.youtube.com/watch?v=bTDAgE08Qv8feature=youtu.be On 17 April 2015 at 07:05, botp botp...@gmail.com wrote: On Fri, Apr 17, 2015 at 9:58 AM, Cristiano de Araujo Bezerra webofb...@gmail.com wrote: case key when 'a' print #{vowels['a']}