[Rails] Help me connect to MySQL Database

2014-01-20 Thread Nguyen Le
Hi all, I have one 1 *.html.erb. I want to connect to mySQL and show some information to website(ff or chrome). Could you help me about that? Thank you so much -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails:

Re: [Rails] Help me connect to MySQL Database

2014-01-20 Thread Colin Law
On 20 January 2014 10:27, Nguyen Le li...@ruby-forum.com wrote: Hi all, I have one 1 *.html.erb. I want to connect to mySQL and show some information to website(ff or chrome). Could you help me about that? If you want to use Rails then start by working right through a tutorial such as

[Rails] Re: Help me connect to MySQL Database

2014-01-20 Thread Nguyen Le
Thanks for your reply, Colin. I asked this question, because I want to make sure file *.html.erb can connect to mySQL database. Could you help me to answer this question and give me code sample?. Thank you so much -- Posted via http://www.ruby-forum.com/. -- You received this message because

Re: [Rails] Help me connect to MySQL Database

2014-01-20 Thread Walter Lee Davis
On Jan 20, 2014, at 6:06 AM, Nguyen Le wrote: Thanks for your reply, Colin. I asked this question, because I want to make sure file *.html.erb can connect to mySQL database. Could you help me to answer this question and give me code sample?. Thank you so much Colin's reply will help you

[Rails] Re: Help me connect to MySQL Database

2014-01-20 Thread jsnark
*.erb files do not connect to databases. Models do. Follow Colin's advise and work through the tutorial. -- 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] Re: Help me connect to MySQL Database

2014-01-20 Thread Jordon Bedwell
On Mon, Jan 20, 2014 at 8:10 AM, jsnark s...@monmouth.com wrote: *.erb files do not connect to databases. Models do. Follow Colin's advise and work through the tutorial. If *.erb files don't connect to the database in the entire context of the application (which they do through models which

Re: [Rails] [Question] Is there any way to define class_name dynamically in has_many relation ?

2014-01-20 Thread Takashi Nakagawa
Hi walter, thanks for answering question. I've read about polymorphic relationships and I've tried it before, but in my case, I should use database which is already used in other project and I make new rails app with the database. so I can' t change database structure easily. 2014年1月17日金曜日

Re: [Rails] [Question] Is there any way to define class_name dynamically in has_many relation ?

2014-01-20 Thread Walter Lee Davis
On Jan 20, 2014, at 9:43 AM, Takashi Nakagawa wrote: Hi walter, thanks for answering question. I've read about polymorphic relationships and I've tried it before, but in my case, I should use database which is already used in other project and I make new rails app with the database. so I

[Rails] Re: Help me connect to MySQL Database

2014-01-20 Thread Nguyen Le
The first, I want to say thank to all reply. I think it is very helpful for me. I will learn Rails step by step. Thank you so much. Nguyen -- 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

[Rails] Re: Help me connect to MySQL Database

2014-01-20 Thread Lehner Viktor
Hi, This Video helped for me: http://www.youtube.com/playlist?list=PLcwklDOKWhc-4SOfwx71yEKzMHGw1BU_hfeature=c4-feed-u 2014. január 20., hétfő 11:27:36 UTC+1 időpontban Ruby-Forum.com User a következőt írta: Hi all, I have one 1 *.html.erb. I want to connect to mySQL and show some

[Rails] [JOBS] Praktikanten im Ruby on Rails Development (m/w), Hannover, Germany

2014-01-20 Thread Jan Erichsen
Für die Unterstützung und Bereicherung unseres Web Development Teams suchen wir einen motivierten: Praktikanten im Ruby on Rails Development (m/w) für einen Zeitraum ab mindestens 3 Monaten, mit der Option auf Übernahme nach erfolgreicher Praktikumszeit. *I WORK BECAUSE I LOVE THIS

[Rails] [JOBS] Ruby on Rails Developer (m/w), Hannover, Germany

2014-01-20 Thread Jan Erichsen
Für die Unterstützung und Bereicherung unseres Web Development Teams suchen wir einen motivierten: Ruby on Rails Developer (m/w) *I WORK BECAUSE I LOVE THIS SHIT!* Wir entwickeln innovative und großartige Software am Puls der Zeit! Neben unseren eigenen Produkten unterstützen wir auch

[Rails] Locale in link_to doesn't work

2014-01-20 Thread Guilherme Oderdenge
My problem is described here: http://stackoverflow.com/questions/21238344/locale-in-link-to-doesnt-work?noredirect=1#comment31993079_21238344 Any ideas? -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe from this group and

[Rails] Why Does def some_func=(obj) Behave This Way?

2014-01-20 Thread Peter
Hello Everyone, Why does this function behave this way? class Confuse def confusion=(obj) @obj = obj return 'expected answer' end end c = Confuse.new c.confusion = 'this should be wrong' This returns 'this should be wrong'. I am reading *Programming Ruby 1.9 2.0* by

Re: [Rails] Why Does def some_func=(obj) Behave This Way?

2014-01-20 Thread Jordon Bedwell
On Mon, Jan 20, 2014 at 1:30 PM, Peter pe...@poproj.com wrote: class Confuse def confusion=(obj) @obj = obj return 'expected answer' end end c = Confuse.new c.confusion = 'this should be wrong' This returns 'this should be wrong'. Ruby setters always ignore your explicit

Re: [Rails] Re: Help me connect to MySQL Database

2014-01-20 Thread jsnark
On Monday, January 20, 2014 9:23:10 AM UTC-5, Jordon Bedwell wrote: On Mon, Jan 20, 2014 at 8:10 AM, jsnark s...@monmouth.com javascript: wrote: *.erb files do not connect to databases. Models do. Follow Colin's advise and work through the tutorial. If *.erb files don't connect

Re: [Rails] Re: Help me connect to MySQL Database

2014-01-20 Thread Jordon Bedwell
On Mon, Jan 20, 2014 at 2:45 PM, jsnark s...@monmouth.com wrote: On Monday, January 20, 2014 9:23:10 AM UTC-5, Jordon Bedwell wrote: On Mon, Jan 20, 2014 at 8:10 AM, jsnark s...@monmouth.com wrote: *.erb files do not connect to databases. Models do. Follow Colin's advise and work

[Rails] capistrano deploy issue: rails (= 4.0.0) depends on bundler ( 2.0, = 1.3.0)

2014-01-20 Thread saravanan p
Hi all, I am trying to push rails 4 app into my server using capistrano. i am getting following error while 'cap deploy', * executing cd -- projects/testproject/releases/20140121061131 RAILS_ENV=production RAILS_GROUPS=assets rake assets:precompile servers: [xxx] [xxx]

Re: [Rails] capistrano deploy issue: rails (= 4.0.0) depends on bundler ( 2.0, = 1.3.0)

2014-01-20 Thread Jordon Bedwell
On Tue, Jan 21, 2014 at 12:33 AM, saravanan p psaravanan11.ra...@gmail.com wrote: Hi all, I am trying to push rails 4 app into my server using capistrano. i am getting following error while 'cap deploy', * executing cd -- projects/testproject/releases/20140121061131 RAILS_ENV=production