[Rails] Re: Seeing Novel Rails Hack Attempts

2015-01-06 Thread cntrytwist
Josh, Do you see any quit request types along with this? I see quit requests and it makes the web application complain that it doesn't know what kind of request that is. Kent On Monday, January 5, 2015 6:28:56 PM UTC-7, Joshua Siler wrote: Hi, We're getting some weird exceptions that look

[Rails] Raisl 4.2 + Capybara + Paperclip = Race condition

2015-01-06 Thread Cezinha Anjos
Hi! I'm upgrading a small Rails 4.1.x app to 4.2. All my test suite is passing, except one spec: scenario showing a video called from a track do visit video_path(video, level_id: level.id) sign_in create(:confirmed_user) expect(page).to have_selector

Re: [Rails] incompatible character encodings: UTF-8 and ASCII-8BIT

2015-01-06 Thread Diego Dillenburg Bueno
Hello, sorry for the really late reply, had some internet troubles where I was. I have researched about the collation, but I see that my database is ok, as when I input records manually it saves without any problems special characters, what I'm thinking that is happening is that the data I'm

Re: [Rails] Re: Raisl 4.2 + Capybara + Paperclip = Race condition

2015-01-06 Thread Cezinha - ASSEINFO
It's generated by Paperclip! 2015-01-06 10:29 GMT-02:00 Frederick Cheung frederick.che...@gmail.com: On Tuesday, January 6, 2015 11:35:45 AM UTC, Cezinha Anjos wrote: Hi! When I inspect the generated HTML I have: video class=img-responsive controls preload autoplay

[Rails] authorization with cancan

2015-01-06 Thread Mohammed Rashid
After looking at the ability.rb. I have allowed the admins to manage everything (that part works) but how do I allow the user to just, view and edit their own Logg using cancan? At the moment the users cannot view anything at all, not even their own created logg. But admins can do everything.

[Rails] Re: Raisl 4.2 + Capybara + Paperclip = Race condition

2015-01-06 Thread Frederick Cheung
On Tuesday, January 6, 2015 11:35:45 AM UTC, Cezinha Anjos wrote: Hi! When I inspect the generated HTML I have: video class=img-responsive controls preload autoplay poster=/system/videos/posters/000/000/001/original/image.png?*1420543954* data-level_id=1

Re: [Rails] Deprecated rails code?

2015-01-06 Thread Vivek Sampara
HI, What is the rails version you're using ? On Tue, Jan 6, 2015 at 4:57 AM, Timothy Wi li...@ruby-forum.com wrote: Hello, Is this code deprecated? map.connect ''., :controller = main, :action = welcome I am trying to get it to work in the routes.rb file but I don't have any luck.

[Rails] Re: Deprecated rails code?

2015-01-06 Thread Timothy Wi
Rails 4.2.0.rc3 -- 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 rubyonrails-talk+unsubscr...@googlegroups.com.

[Rails] ActionDispatch::RemoteIp::IpSpoofAttackError exception

2015-01-06 Thread Jason Fleetwood-Boldt
I am running Rails 3.2.21 on Heroku and yesterday I started seeing a low occurrence exceptions with this signature: ActionDispatch::RemoteIp::IpSpoofAttackError: IP spoofing attack?!HTTP_CLIENT_IP=10.166.210.93HTTP_X_FORWARDED_FOR=10.166.210.93, 74.121.112.50 here is the full stacktrace:

[Rails] Deprecated rails code?

2015-01-06 Thread Timothy Wi
Hello, Is this code deprecated? map.connect ''., :controller = main, :action = welcome I am trying to get it to work in the routes.rb file but I don't have any luck. Thanks -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google

Re: [Rails] How find ruby on rails app client mac address?

2015-01-06 Thread Scott Ribe
On Jan 5, 2015, at 12:18 PM, Jason Fleetwood-Boldt t...@datatravels.com wrote: Generally in a web app you record the user’s browser using a cookie (which is tied to a session) and you record the user’s IP address. You can't even get the user's machine's IP address unless the user is on a LAN

Re: [Rails] Re: Deprecated rails code?

2015-01-06 Thread Colin Law
On 6 January 2015 at 13:11, Timothy Wi li...@ruby-forum.com wrote: Rails 4.2.0.rc3 Please quote the previous message when replying so that people know what you are talking about. map.connect is no more, have a look at the rails guide on routing to see how to do it.

[Rails] [Selenium and Ruby] Script not run while condition

2015-01-06 Thread Rafael s
Hi, My scenario is: 1) Access menu 2) While icon trash exist, remove all 3) If icon not exist, then add a new register My code is: require selenium-webdriver require rspec require 'rspec/expectations' describe Current Expense do before(:all) do @driver = Selenium::WebDriver.for

[Rails] [ANN] Rails 4.1.9 and 4.0.13 have been released!

2015-01-06 Thread Rafael Mendonça França
Hi everyone, I am happy to announce that Rails 4.1.9 and 4.0.13 have been released. This will be also the last release of 4.0 series as announced [in a previous blog post]( http://weblog.rubyonrails.org/2014/9/12/Rails-4-1-6-and-4-0-10-has-been-released/ ). As per our maintenance policy, the

[Rails] Re: There is a difference between rake and bundle exec rake and I need to understand it.

2015-01-06 Thread Chris Miller
Hi Fred, On Tuesday, January 6, 2015 9:06:25 AM UTC-8, Frederick Cheung wrote: bundler makes sure only the gems (and the specific versions) listed in Gemfile.lock are loaded which avoids all sorts of dependency based problems. However if you just run `rake`, then the most recent version of

[Rails] Re: Raisl 4.2 + Capybara + Paperclip = Race condition

2015-01-06 Thread Cezinha Anjos
Hi Fred! I beg your pardon, but I think you're not right. The ?nnn is really a fingerprint generated by paperclip. I checked here: https://github.com/thoughtbot/paperclip#md5-checksum--fingerprint Do you have any idea to solve my problem? I only think in two options: 1. The assertion is

[Rails] Ruby On rails Installation on kali linux

2015-01-06 Thread Exile Njoka
Hello Guys, i am having problems in installing ruby on rails on Kali linux. Can you share some help or links links which have worked so far. thanks -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe from this group and stop

Re: [Rails] Android app calling rails 4 APIs

2015-01-06 Thread Robby O'Connor
There's several token based authentication gems...it's super easy to do --Rob Sent from my cell, please excuse any typos. On Jan 7, 2015 2:22 AM, Avi aavinash.beh...@gmail.com wrote: Hi, Is it like the railscast 352 using an API token ? I will give it a try. On Wednesday, January 7, 2015

[Rails] Android app calling rails 4 APIs

2015-01-06 Thread Avi
Hello All, I have a Rails 4/Ruby 2 web application. There is an android app which will be calling Rails application APIs like Signin/Signout others. What is the correct way to authenticate those request from the Android App which doesn't hamper web application? Please let me know. Thanks,

Re: [Rails] Android app calling rails 4 APIs

2015-01-06 Thread Robby O'Connor
Use token based authentication --Rob Sent from my cell, please excuse any typos. On Jan 7, 2015 12:19 AM, Avi aavinash.beh...@gmail.com wrote: Hello All, I have a Rails 4/Ruby 2 web application. There is an android app which will be calling Rails application APIs like Signin/Signout others.

Re: [Rails] Android app calling rails 4 APIs

2015-01-06 Thread Avi
Hi, Is it like the railscast 352 using an API token ? I will give it a try. On Wednesday, January 7, 2015 12:18:15 PM UTC+5:30, Robert O'Connor wrote: Use token based authentication --Rob Sent from my cell, please excuse any typos. On Jan 7, 2015 12:19 AM, Avi aavinas...@gmail.com

[Rails] Need help with Controllers/Views for inkwell gem

2015-01-06 Thread David Williams
The documentation for the gem isn't very helpful in terms of what controllers/views I need to create in order to get the actions to respond appropriately. From the looks of the documentation on this http://www.rubydoc.info/gems/inkwell/2.0.0 besides the community component (I won't use it) Can

[Rails] Re: There is a difference between rake and bundle exec rake and I need to understand it.

2015-01-06 Thread Frederick Cheung
On Tuesday, January 6, 2015 4:52:34 PM UTC, Chris Miller wrote: Hi Folks, I think I need to understand this fundamental architectural question. I don't know if it is a Ruby question or a Rails question, or a Ruby on Rails question. Clearly I have multiple versions. Clearly I am supposed

Re: [Rails] Re: Seeing Novel Rails Hack Attempts

2015-01-06 Thread Joshua Siler
activesupport (4.0.13.rc1) lib/active_support/dependencies.rb:464:in `load_missing_constant' activesupport (4.0.13.rc1) lib/active_support/dependencies.rb:184:in `const_missing' activesupport (4.0.13.rc1) lib/active_support/dependencies.rb:495:in `load_missing_constant' activesupport

[Rails] There is a difference between rake and bundle exec rake and I need to understand it.

2015-01-06 Thread Chris Miller
Hi Folks, I think I need to understand this fundamental architectural question. I don't know if it is a Ruby question or a Rails question, or a Ruby on Rails question. Clearly I have multiple versions. Clearly I am supposed to have multiple versions. Clearly there is an accommodation for

Re: [Rails] Ruby On rails Installation on kali linux

2015-01-06 Thread Hassan Schroeder
On Tue, Jan 6, 2015 at 7:11 AM, Exile Njoka cenj...@gmail.com wrote: i am having problems in installing ruby on rails on Kali linux. You'll probably get better responses if you explain the problem(s) precisely :-) -- Hassan Schroeder hassan.schroe...@gmail.com

[Rails] Re: Seeing Novel Rails Hack Attempts

2015-01-06 Thread Joshua Siler
To clarify, https://gadgetco.hiringthing.com/admin/jobs/k(b.onLoad)n(a,'load ',h.onLoad),null==h||'none' Crashes with the exception LoadError: Unable to autoload constant Jobs, while https://gadgetco.hiringthing.com/admin/jobs/h.delayType)c(h,b),h.before=b,e= Gives the RuntimeError: Circular

[Rails] Re: Seeing Novel Rails Hack Attempts

2015-01-06 Thread Frederick Cheung
On Tuesday, January 6, 2015 4:43:03 PM UTC, Joshua Siler wrote: We do get a fair amount of requests to random HTTP verbs and file types, but the system usually handles that just fine (throwing an unknown request exception would be desired behavior.) What concerns me about this is that

[Rails] Re: Seeing Novel Rails Hack Attempts

2015-01-06 Thread Joshua Siler
We do get a fair amount of requests to random HTTP verbs and file types, but the system usually handles that just fine (throwing an unknown request exception would be desired behavior.) What concerns me about this is that I'm seeing unexpected behavior, based on the addition of a period in the

Re: [Rails] Re: Seeing Novel Rails Hack Attempts

2015-01-06 Thread Colin Law
On 6 January 2015 at 17:04, Joshua Siler josh...@hiringthing.com wrote: To clarify, https://gadgetco.hiringthing.com/admin/jobs/k(b.onLoad)n(a,'load',h.onLoad),null==h||'none' Crashes with the exception LoadError: Unable to autoload constant Jobs, while

Re: [Rails] incompatible character encodings: UTF-8 and ASCII-8BIT

2015-01-06 Thread Hassan Schroeder
On Tue, Jan 6, 2015 at 4:36 AM, Diego Dillenburg Bueno diegodillenb...@gmail.com wrote: I have researched about the collation, but I see that my database is ok, as when I input records manually Meaningless. The MySQL command line client is not the same as the driver client used by your Rails

[Rails] Re: Seeing Novel Rails Hack Attempts

2015-01-06 Thread Joshua Siler
It's one of two exceptions. Either RuntimeError: Circular dependency detected while autoloading constant Jobs or LoadError: Unable to autoload constant Jobs. The trace includes no application files (only framework files), and we have no Jobs object defined in the system. We do have a Jobs