i am developing a ruby on rails (2.3.8) application with data storage amazon simpledb.
i am using the aws-sdb gem in the version aws-sdb (0.3.1)
there are a few bugs, but the problems are outlined in the comments of this tutorial from amazon: http://developer.amazonwebservices.com/connect/entry.jspa?externalID=1242
i am wondering if it ...
Hi,
I have just started learning Ruby on Rails.
I happened to look for prevention of DNS attacks in Rails and ended up reading about DNS, Session fixation and Cross Site request forgery in Rails?
How do you prevent all the above three attacks??
Could you suggest me a good tutorial on how to deal with attack in RoR?
Looking forward f...
How to make form Google.com param (e.g. /some_action/Google.com) a single param, but not "id"=>"Google", "format"=>"com" ?
So i need "id"=>"Google.com"
...
IRb is pretty plain compared to bpython, even when using wirble.
Is there any ruby equivalent of bpython?
...
Is there a way from JRuby to introspect on a Java object and find out its Java-land methods? Like what http://github.com/oggy/looksee provides, but for Java. Or like
(someobject).methods - 1.methods
This would be nice for just taking a look at what a Java object provides versus the APIDoc for it.
...
In class Foo I'd like to include method Bar under certain conditions:
module Bar
def some_method
"orly"
end
end
class Foo
def initialize(some_condition)
if !some_condition
"bar"
else
class << self; include Bar; end
end
end
end
Is there any cleaner (and clearer) way to achieve the incl...
I am interested in developing a workstation-based application that communicates with a proprietary data server and that presents information from that server to the user. I am not intending the user interface to be browser-based, and have been considering Qt as my framework. Should I consider RoR for this? Thanks.
...
Is it possible to check the gem version of the currently loaded gem in a ruby/rails app?
During debugging, I would like to be able to do something like:
puts RubyGem.loaded_version(:active_support)
Anything like that exist?
...
I have run into this error 5 or 10 times over the past few years and have never found a clear answer to this problem. Here is the error:
$ rake db:migrate
/usr/lib/ruby/gems/1.8/gems/libxml-ruby-0.9.5/lib/libxml_ruby.bundle: [BUG] Bus Error
ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin9.7.0]
Abort trap
The app I am running thi...
I'm working off these instructions: http://github.com/dcparker/ruby-gmail
From the home directory I do a standard install and good stuff happens:
Johnny-Goodmans-MacBook-Pro:gmail johnnygoodman$ sudo gem install ruby-gmail
Successfully installed ruby-gmail-0.2.1
1 gem installed
Installing ri documentation for ruby-gmail-0.2.1...
Insta...
I'm trying to write a simple server that will grab an mp3 file from rackspace cloudfiles, and stream it to a client over HTTP.
The server must be able to stream to multiple clients simultaneously, however, I'm finding it difficult to come up with a viable solution.
Anyone have some ideas?
...
Possible Duplicate:
What does Ruby have that Python doesnt, and vice versa?
I know this is going to seem a little like all the other python vs ruby question out there, but I'm not looking specifically to pick one over the other all the time. My question is, essentially, why would you use one language over the other when you a...
Hey.Guys!
Now .I have a question ,i want someone to help me to solve it ,the log of the problem like the under text
>> Department.find(EmeReference.find(:all,:select =>:ref_config_id,:conditions=>"emergency_id = 1"))
ActiveRecord::RecordNotFound: Couldn't find Department with ID=0
from /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib...
I have a simple rack app that's designed to marshal data from Rackspace CloudFiles, however it doesn't seem to be working.
I'm a complete noob when it comes to rack, so I'm hoping someone can show me the follies of my ways.
require 'rubygems'
require 'cloudfiles'
class StreamingFile
def initialize(id)
user = "<CLOUDFILES USERNAM...
I have a rather complete application based on sinatra. I feel in need for an easy to integrate forum module (code, extension, etc.). Running a parallel Rails application is not an option on my tiny VPS plan (I even use redis to keep a small footprint). A sinatra based forum would be great news. Thanks
...
Hi All,
i have a string say "31-02-2010" now i want to check that wheather this date is valid date or not .
what is the best way to do it?
so i need a method which i operate on string which returns true if date is valid and false if it's invalid.
...
There is a model relation like this.
class A
belongs_to :ref_config,:class_name => 'User'
end
My question is :
the A has a attribute named flag, now i want to create a function like this:
if flag == 1, I want the class A like this belongs_to :ref_config,:class_name => 'Department and if flag == 2, i want the class A like this ...
Hi,
I'm working on a ruby project using Sinatra as a framework and have a question about extending classes.
Lets say I have a User class which is extended by an Admin, does the Admin have to be defined in User.rb? I've tried putting it in Admin.rb but I get an error saying:
admin.rb:1: uninitialized constant User (NameError)
Thanks....
I am rephrasing my earlier question. This time any answer about a non-rails ruby forum application, be it sinatra based or not, will be fine. Thanks
...
Does anyone know a ruby library to handle GDF (Geographic Data File) files ?
...