[Rails] Re: Wiselinks issue

2013-02-24 Thread Frederick Cheung
On Sunday, February 24, 2013 11:58:13 PM UTC, Ronald Chan wrote: > > I tried to reach out, and I feel bitten by the response. > > Am I being sensitive, or is my interpretation appropriate? > > https://github.com/igor-alexandrov/wiselinks/issues/9 > > I thought it might help to collaborate on what

[Rails] Wiselinks issue

2013-02-24 Thread Ronald Chan
I tried to reach out, and I feel bitten by the response. Am I being sensitive, or is my interpretation appropriate? https://github.com/igor-alexandrov/wiselinks/issues/9 I thought it might help to collaborate on what features are useful etc, but I feel like all my design decisions are being rej

[Rails] Re: where condition with array

2013-02-24 Thread Soichi Ishida
thanks. I haven't done sql query at all but this time I did for the first time. soichi -- 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

Re: [Rails] where condition with array

2013-02-24 Thread tamouse mailing lists
On Sun, Feb 24, 2013 at 8:43 PM, Javier Quarite wrote: > > Have you considered doing a sql query? > > my approach would be this > > query_array = [] > [3,4,7].each do |value| > query_array << "user_id != #{value}" > end > > Plan.where("#{query_array}.join(" and ")") > > Also, the past week I fou

Re: [Rails] Re: how to create custom yaml

2013-02-24 Thread tamouse mailing lists
On Sun, Feb 24, 2013 at 7:49 PM, Joshua Shane Martin wrote: > Is the result a Rails model? If so, easy, just build a string and insert > your variables into the string. You can do this in a model method like so: No idea, really, why you'd tell someone to rewrite the to_yaml method... > On Thurs

Re: [Rails] where condition with array

2013-02-24 Thread Javier Quarite
Have you considered doing a sql query? my approach would be this query_array = [] [3,4,7].each do |value| query_array << "user_id != #{value}" end Plan.where("#{query_array}.join(" and ")") Also, the past week I found this gist from ryan https://gist.github.com/ryanb/4974414 I'm still analyz

[Rails] where condition with array

2013-02-24 Thread Soichi Ishida
Rails 3.2.11 Say, my app needs special conditions like plans = Plan.arel_table @plan = Plan.where( plans[:user_id].not_eq(3) ).where( plans[:user_id].not_eq(4)

[Rails] Re: how to create custom yaml

2013-02-24 Thread Joshua Shane Martin
Is the result a Rails model? If so, easy, just build a string and insert your variables into the string. You can do this in a model method like so: def to_yaml yaml = "---" yaml += "- name: #{self.device_name or wherever you store this}" blah blah so on return yaml end On Thursday, Fe

[Rails] Re: Load local files

2013-02-24 Thread Joshua Shane Martin
Your link would render a link on the local user's computer to "file:///C:/Videos/file.swf" - basically, it would link to that file on the *user's computer*, not the file on the server. You will have to either place the file within the Web application (under public or assets), *or* build a contr

[Rails] Re: Deploying from Windows to Linux?

2013-02-24 Thread Joshua Shane Martin
I don't know much about the sqladapter gem and how to get it working on Linux (what dependencies, libraries are needed, etc.), but I had a similar situation where I needed to store my data in an SQL Server backend. In my case, I used TorqueBox (a nice JBoss-based Rails server running on JRuby),

[Rails] Re: Security fix CVE-2012-5664 exists in rails 2.3.15

2013-02-24 Thread Rick
The original announcement of Rails 3.2.10... was posted on *January 2*. The current version is at 3.2.12. It's quite possible the 2.3 branch has also advanced. Rick On Sunday, February 24, 2013 9:47:00 AM UTC-5, Ariel Tal wrote: > > Hello, > I was looking to migrate the patch described in this

[Rails] Re: [ANN] Rails 3.2.10, 3.1.9, and 3.0.18 have been released!

2013-02-24 Thread Ariel Tal
It appears that the same fix has been applied to 2.3.15. Is that correct? Thanks On Thursday, January 3, 2013 3:16:39 PM UTC+2, Hongli Lai wrote: > > This article explains how the vulnerability works, how it is triggered and > what the facts are: > http://blog.phusion.nl/2013/01/03/rails-sql-i

[Rails] Security fix CVE-2012-5664 exists in rails 2.3.15

2013-02-24 Thread Ariel Tal
Hello, I was looking to migrate the patch described in this link ( https://groups.google.com/forum/?fromgroups=#!topic/rubyonrails-security/DCNTNp_qjFM) to the rails 2.3 branch, but when doing so realized that

Re: [Rails] Re: Quick gem to help with passwords

2013-02-24 Thread derek . mcneil90
If it's an issue of security...if somebody is already looking at your processes, what's keeping them from cd'ing to your application's config directory and reading secrets.yml? On Saturday, February 23, 2013 8:02:05 PM UTC-6, M Graff wrote: > > Because environment variables show up in process li

[Rails] Re: will_paginate generates undefined method paginate

2013-02-24 Thread Mathieu Jobin
you can replace .paginate by .send(:paginate) to cheat it ... -- 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