[Rails] Re: The rails generate command

2013-02-14 Thread Javix
On Wednesday, 13 February 2013 19:02:40 UTC+1, Jason Hsu, Android developer wrote: I understand the rails generate command generates the files needed for a general type of app. The types of apps include scaffold, model, controller, and others. What are all the options, and what do they

Re: [Rails] Any Rails + 960gs Gurus here? - zebra striping tables

2013-02-14 Thread Javix
Use twitter-bootstrap and you will forget about it: http://twitter.github.com/bootstrap/base-css.html#tables Just add the needed gems into your Gemfile: gem 'bootstrap-will_paginate', '~ 0.0.9' gem 'bootstrap-datepicker-rails', '~ 0.6.37' gem 'bootstrap-sass', '~ 2.2.2.0' and require bootstrap

[Rails] Re: Job

2013-02-14 Thread prionko
Are you looking for remote developers. If not what's the location ? On Wednesday, 13 February 2013 22:50:13 UTC+5:30, Sharan Kaur wrote: Do you want to work in a creative, collaborative environment with a company that is the next *Big Thing*? The company is offering generous compensation

[Rails] Re: Job

2013-02-14 Thread prionko
Are you looking for remote developers. If not what's the location ? On Wednesday, 13 February 2013 22:50:13 UTC+5:30, Sharan Kaur wrote: Do you want to work in a creative, collaborative environment with a company that is the next *Big Thing*? The company is offering generous compensation

[Rails] Workshop @LARubyConf: Going Beyond Rails - Scale Non-synchronically

2013-02-14 Thread Natalia Usenia
Hi all, Anyone planning to attend LA Ruby Conf? If so, consider joining the workshop: Going Beyond Rails - Scale Non-synchronically. Key takeaways: There is a common scenario that all developers face from time to time: we are going to deploy an application and we need to prove that it is going

[Rails] Re: ROR with Forums in PHP Is it OK?

2013-02-14 Thread Andola Soft
Combination is good but is it working? -- 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: Fixing code affected by Unsafe Object Creation Vulnerability in JSON

2013-02-14 Thread devorums
anyone? On Wednesday, February 13, 2013 12:09:17 PM UTC, devo...@gmail.com wrote: With the latest JSON gem 1.7.7, its breaking some of my code because I was using: {json_class:SomeClass,foo:bar} So the it doesn't recreate the SomeClass object back with the new gem update, I can make it

Re: [Rails] Re: Fixing code affected by Unsafe Object Creation Vulnerability in JSON

2013-02-14 Thread Jordon Bedwell
On 02/14/2013 05:48 AM, devor...@gmail.com wrote: anyone? On Wednesday, February 13, 2013 12:09:17 PM UTC, devo...@gmail.com wrote: With the latest JSON gem 1.7.7, its breaking some of my code because I was using: {json_class:SomeClass,foo:bar} What's the best way to

[Rails] create object after before_filter :authenticate_user!

2013-02-14 Thread oto iashvili
hi I use devise and cancan my model class PostsController ApplicationController before_filter :authenticate_user!, only: [:create, :update, :destroy] ... end so an unauthentificate user can access new post form. Now when unauthentificate user submit new or edit forms, he is redirected to

[Rails] Social-Reviewing : new project for developpers to discuss about code

2013-02-14 Thread Guirec Corbel
Hello, I started a new project to for developpers to discuss about code and techniques used for projects. You can see it here : http://www.social-reviewing.com/. You can see an exemple here : http://www.social-reviewing.com/en/projects/12or the french version here :

Re: [Rails] Social-Reviewing : new project for developpers to discuss about code

2013-02-14 Thread Scott Eisenberg
It's a good idea. Will try it. Keep pushing the feature set! On Feb 14, 2013, at 7:52 AM, Guirec Corbel guirec.cor...@gmail.com wrote: Hello, I started a new project to for developpers to discuss about code and techniques used for projects. You can see it here :

[Rails] Re: Looking for RoR job (remotely/part-time/full-time)

2013-02-14 Thread Sep D.
Bump - still actively looking for. -- 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] Re: Fixing code affected by Unsafe Object Creation Vulnerability in JSON

2013-02-14 Thread forum mail
Hi Jordon, Thanks for your reply! Sorry forgot to mention I am using #parse but that doesn't make it safe. This article shows how parse is used to take advantage of this issue: http://www.zweitag.de/en/blog/ruby-on-rails-vulnerable-to-mass-assignment-and-sql-injection I forgot to mention that I

Re: [Rails] Re: Fixing code affected by Unsafe Object Creation Vulnerability in JSON

2013-02-14 Thread Jordon Bedwell
On 02/14/2013 09:30 AM, forum mail wrote: Sorry forgot to mention I am using #parse but that doesn't make it safe. This article shows how parse is used to take advantage of this issue: http://www.zweitag.de/en/blog/ruby-on-rails-vulnerable-to-mass-assignment-and-sql-injection That article

Re: [Rails] Re: Fixing code affected by Unsafe Object Creation Vulnerability in JSON

2013-02-14 Thread forum mail
Sorry to bother you again about this, your example is great, that's what I'd like to achieve.. It's old code that I'm trying to maintain. However when running it locally in a console I get the following: Loading development environment (Rails 3.2.11) 1.9.3p194 :001 class MyClass 1.9.3p194

[Rails] Re: conditional validates_associated

2013-02-14 Thread Matt Jones
On Wednesday, 13 February 2013 15:41:49 UTC-5, Rafael C. de Almeida wrote: On Wednesday, February 13, 2013 12:59:11 PM UTC-2, Matt Jones wrote: On Tuesday, 12 February 2013 20:29:49 UTC-5, Rafael C. de Almeida wrote: Hello, Have you guys noticed that conditional validation with

[Rails] Struggling with Jruby Rails + jdbc driver

2013-02-14 Thread Joseph Li
hi all, I am having a hard time trying to find out what's wrong with my setup. It used to work smoothly until I decided out of the blue to do a selfupdate and upgrade outdated on MacPort, then things started going south very quickily. Since MacPort kinda broke, I pull it all out and

Re: [Rails] Running Rails App Via Passenger

2013-02-14 Thread Nick Apperley
Managed to access the website by adding *Listen 1025* to the Apache config file, and adding an entry to the hosts file. Have used a different port for the website (in its VirtualHost entry). Port 80 is already taken by the default website. Using a different IP address only works for a website

[Rails] Re: Struggling with Jruby Rails + jdbc driver

2013-02-14 Thread Joseph Li
Now this is cheating. I finally decided to add the derbyclient.jar from the maven repo to my CLASSPATH env var in my bash profile. Which get things going for now. However, I am still baffled at what made it all work before I did the whole MacPort RVM reinstall routine as my bash_profile hasn't

[Rails] Re: confirm on Post under certain conditions

2013-02-14 Thread Soichi Ishida
Thanks for your help! -- 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: Struggling with Jruby Rails + jdbc driver

2013-02-14 Thread Joseph Li
I give up. But found a better workaround and that might just actually be what I have done in the first place to get it working. Turns out the jdbc-derby gem doesn't have the derbyclient network driver but only the embedded driver. Thus the class not found. I tried many things and thinking

Re: [Rails] Re: Struggling with Jruby Rails + jdbc driver

2013-02-14 Thread Jordon Bedwell
On 02/14/2013 10:13 PM, Joseph Li wrote: I give up. But found a better workaround and that might just actually be what I have done in the first place to get it working. Turns out the jdbc-derby gem doesn't have the derbyclient network driver but only the embedded driver. Thus the class not

Re: [Rails] Re: Struggling with Jruby Rails + jdbc driver

2013-02-14 Thread Joseph Li
Thank you Jordon, for the extra info. I have not yet master enough knowledge of how rvm works yet. I just know enough commands to monkey it around til it works. : Guess a visit to the rvm / bundler page will be needed soon. Thanks, Joseph -- You received this message because you are

[Rails] how to debug rubny on rails application on aptana 3 studio

2013-02-14 Thread Venkat Vejandla
Hi i am using rails 3.0.12 and ruby 1.9 and Aptana studio3, just i started to learn ruby on rails , i got one sample project from open source, i want to debug and see the flow of compiling. i am not getting how to debug rails application line by line and how i see the values while debugging, any

Re: [Rails] how to debug rubny on rails application on aptana 3 studio

2013-02-14 Thread Jordon Bedwell
On 02/15/2013 12:45 AM, Venkat Vejandla wrote: Hi i am using rails 3.0.12 and ruby 1.9 and Aptana studio3, just i started to learn ruby on rails , i got one sample project from open source, i want to debug and see the flow of compiling. i am not getting how to debug rails application line by