[Rails] Re: Re: Re: Re: Create a new view without model

2014-05-20 Thread Fab Forestier
Hassan Schroeder wrote in post #1146499: Indeed they show how to fetch data from the database but I have only seen exemples with scaffold's views, I mean _form, new, index... Seriously? On this page that Colin referenced: http://guides.rubyonrails.org/active_record_querying.html where do

Re: [Rails] Re: Layouts

2014-05-20 Thread Colin Law
On 20 May 2014 03:57, Duong vong veasna veasnakhme...@gmail.com wrote: Hi guys I have problem when i try to link to my new page, can any one help me. thanks and regard. get link/home get link/about Probably someone will help if you describe the problem. Also I am not sure what this has

[Rails] Re: Extending a model

2014-05-20 Thread andreo
The best advice I can give you here, is one I have read on Sandy Metz book(http://www.amazon.co.uk/Practical-Object-Oriented-Design-Ruby-Primer/dp/B00D81W074%3FSubscriptionId%3DAKIAILSHYYTFIVPWUY6Q%26tag%3Dduc08-21%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3DB00D81W074):

Re: [Rails] Extending a model

2014-05-20 Thread Colin Law
On 19 May 2014 05:18, Christophe N. li...@ruby-forum.com wrote: I'm not sure what is the best approach for my problem. I need a model for notification (or alerts) in my application. Notifications are based on services, have multiple fields to define conditions and are associated with a user.

[Rails] Re: Create a new view without model

2014-05-20 Thread Fab Forestier
I have looked more preciselly what does he do in railstutorial.org but even login/logout chapter doesn't help me. Indeed he use resources in he's routes. Then he rename new, destroy... path's in '/login' '/logout' but in my case I can't do the same thing... I have no more ideas, and I have

[Rails] Re: Installing rvm on SLES 11 sp3(SUSE Linux Enterprise Server 11)

2014-05-20 Thread MichaƂ Papis
Please open a ticket = https://github.com/wayneeseguin/rvm/issues -- 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: Rails unicorn start on boot error

2014-05-20 Thread Ed Ed
Environment 1: running a script as user 'root' at boot time Environment 2: running a script as you in a login shell One of these things is not like the other :-) Thanks, I undestood. And what should I do? I can't run script as other user when boot? -- Posted via

[Rails] Re: Rails unicorn start on boot error

2014-05-20 Thread Ed Ed
Thanks, I undestood. And what should I do? I can't run script as other user when boot? I've already solve my problem. I wrote 'su -l user -c command' in my local.start file, and everything is ok. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are

Re: [Rails] Re: Create a new view without model

2014-05-20 Thread Colin Law
On 20 May 2014 08:44, Fab Forestier li...@ruby-forum.com wrote: I have looked more preciselly what does he do in railstutorial.org but even login/logout chapter doesn't help me. Indeed he use resources in he's routes. Then he rename new, destroy... path's in '/login' '/logout' but in my case I

[Rails] Re: Re: Create a new view without model

2014-05-20 Thread Fab Forestier
Colin Law wrote in post #1146600: I don't think anyone knows what it is that you do not know how to do. I think it is something to do with routing but am not sure. Please describe just the bit you have a problem with, not the whole requirement. Colin I will have difficults to discribe a

Re: [Rails] Re: Re: Create a new view without model

2014-05-20 Thread Colin Law
On 20 May 2014 11:07, Fab Forestier li...@ruby-forum.com wrote: Colin Law wrote in post #1146600: I don't think anyone knows what it is that you do not know how to do. I think it is something to do with routing but am not sure. Please describe just the bit you have a problem with, not the

[Rails] Re: Re: Re: Create a new view without model

2014-05-20 Thread Fab Forestier
Colin Law wrote in post #1146603: But as you said yourself the tutorial does create a view without a model. It is easy. All you have to do is make a controller file controllers/somename_controller.rb, put the desired actions in it, create view files such as views/somename/theaction.html.erb

[Rails] Question about Security and CVE, Rails 3.1.12

2014-05-20 Thread rene_gr
In a former blog-posthttp://weblog.rubyonrails.org/2013/2/24/maintenance-policy-for-ruby-on-rails/, the rails maintainer stated, that after the release of 4.0 only 3.2 will get maintenance. I wonder: When you check out

Re: [Rails] Re: Re: Re: Create a new view without model

2014-05-20 Thread Colin Law
On 20 May 2014 12:46, Fab Forestier li...@ruby-forum.com wrote: Colin Law wrote in post #1146603: But as you said yourself the tutorial does create a view without a model. It is easy. All you have to do is make a controller file controllers/somename_controller.rb, put the desired actions in

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

2014-05-20 Thread Luke Saunders
I run a small consulting company based in London, UK. I am looking to employ an excellent developer full-time to help develop existing and upcoming projects. We work remotely so you can work from anywhere - there is no need to be based in the UK. We like to develop apps using the prime stack,

[Rails] Re: Can ActiveRecord::Base.connection.schema_search_path be set per process?

2014-05-20 Thread Reginaldo Junior
I mean, is there a better solution that fits better Unicorn design? Em segunda-feira, 19 de maio de 2014 03h48min14s UTC-3, Frederick Cheung escreveu: Is this solution going to fail even if Unicorn is one thread per worker(EA37168483process)? If this is not the right way, what else can I

[Rails] Career Change - Building a Portfolio Advice

2014-05-20 Thread johnelahr
So someone posted previously that they were attempting to make a significant industry change into Ruby On Rails and I'm doing the same thing. I realize one of the most important things in getting a job in ROR or Ruby is a portfolio demonstrating what you can do. I'm wondering if people have

[Rails] Error when i try to in stall mysql

2014-05-20 Thread Duong vong veasna
I am new new to developer on rails. i have problem when i try to use command rails install mysql it said like this picture. Thanks you, https://lh5.googleusercontent.com/--X5X957V4L0/U3wCbuzmDkI/ADo/qPaUsPlISQQ/s1600/error+01.png -- You received this message because you are subscribed

Re: [Rails] Error when i try to in stall mysql

2014-05-20 Thread Benjamin Iandavid Rodriguez
On windows I think you need to install the DevKit( http://rubyinstaller.org/add-ons/devkit/), inside the devkit you will find instructions on how to patch your ruby installation to be able to compile native extensions. Also make sure you have mysql server installed. My best, Ian 2014-05-20

[Rails] Ruby On Rails

2014-05-20 Thread Duong vong veasna
Dear all Rails Developers, i can not use the command rails new app -d mysql when i try to use this i got error. please help me, thanks you. https://lh4.googleusercontent.com/-7XFxj_-4JLA/U3wFXLFvi4I/ADw/Ch7nQ8EHN80/s1600/error+02.png -- You received this message because you are

Re: [Rails] Ruby On Rails

2014-05-20 Thread Germano Teixeira
Did you try install the mysql gem before run rails new command? Try run gem install mysql2 as suggested by the log. This will show you what is the real problem. 2014-05-20 22:48 GMT-03:00 Duong vong veasna veasnakhme...@gmail.com: Dear all Rails Developers, i can not use the command rails new

[Rails] Re: Error when i try to in stall mysql

2014-05-20 Thread Duong vong veasna
On Tuesday, May 20, 2014 6:35:29 PM UTC-7, Duong vong veasna wrote: I am new new to developer on rails. i have problem when i try to use command rails install mysql it said like this picture. Thanks you,

[Rails] Re: Extending a model

2014-05-20 Thread Christophe N.
I'll take a look at that book and read on single table inheritance (STI). Thanks for your suggestions. I was also thinking about having a notification model and has N attributes. An attribute is a model that basically only have a type and value. Think that's a good idea? -- Posted via

[Rails] Re: Ruby On Rails

2014-05-20 Thread Duong vong veasna
when i use gem install mysql2. I got this error. Result logged to C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/extensions/x86-mingw32/1.9.1/mysql-2.9.1/gem_make.out thanks you, On Tuesday, May 20, 2014 6:48:23 PM UTC-7, Duong vong veasna wrote: Dear all Rails Developers, i can not use the

Re: [Rails] Ruby On Rails

2014-05-20 Thread Duong vong veasna
when i use gem install mysql2. I got this error. Result logged to C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/extensions/x86-mingw32/1.9.1/mysql-2.9.1/gem_make.out thanks you, On Tuesday, May 20, 2014 7:34:16 PM UTC-7, Germano Teixeira wrote: Did you try install the mysql gem before run