Ruby is an open-source dynamic object-oriented interpreted language created by Yukihiro Matsumoto (Matz) in 1993.
0
votes
0answers
5 views
Post to facebook using Graph API and ruby
I'm playing with facebook Graph API and wanted to post to my timeline using ruby.
While posting using only URL I used
...
0
votes
0answers
10 views
How to downgrade rubygem version at heroku
My current App is Using Cedar Stack with gem --version (1.8.24)
but my App is designed with gem --version (1.4.2) and this causes app unable to run at heroku (cedar) Environment..
The old app is ...
0
votes
0answers
5 views
Alternative to ActiveResource for XML?
ActiveResource fail to perform a simple find by id over XML so have to use:
self.all.select{|a|a.id.to_s == id.to_s}.first
Searching for a replacement found Her, but ORM is only for JSON and not ...
1
vote
0answers
15 views
Active Record :includes with limit and order by foreign key
Post.includes(:comments).order('timestamp DESC'.limit(5).to_a.size
returns 5 and produces this SQL code:
SELECT "posts".* FROM "posts" ORDER BY "posts"."timestamp" LIMIT 5
SELECT "comments".* FROM ...
0
votes
0answers
7 views
RVM Not Finding Library
I am running CentOS 5.9 and installed RVM on it. However, whenever I run rvm requirements or rvm install 1.9.3, I get:
--> Processing Dependency: libyaml-0.so.1()(64bit) for package: libyaml-devel
...
0
votes
0answers
7 views
How to test Mobile app using cucumber-ruby with selenium2 webdriver
My website has two view one is web app and second is mobile app(ios and iphone). I have tested my web app with cucumber, with selenium web-driver and language is Ruby.
Now I want to test Mobile view ...
2
votes
0answers
13 views
post request of digest auth in ruby
I'm fighting with post request of digest auth a few days and still can't get how to send json body. Please help me! Server told that i got in, but by json was not used. i'm using net/http/digest_auth ...
0
votes
1answer
26 views
In ruby on rails how to get data from client side(android)
Android as a client side,i am sending data from client side to server side.Ruby on rails as server side,how to fetch data from client side using the post method.
I want to get the data from client ...
0
votes
1answer
43 views
What is the complexity of Ruby's Array#insert?
What is the complexity of Ruby's Array#insert?
Is it O(1) or O(n) (memory is copied)?
0
votes
0answers
27 views
Rails source code, what does 'autoload' do?
I am quite new to ruby. I am reading rails' source code to hence my understanding of the language.
In the source code, there are lots of module extend ActiveSupport::Autoload module and use the ...
0
votes
0answers
7 views
Tire Gem with Ransack for elasticsearch
I've been using Ransack with my MySQL data to produce an advanced form, I've switched over to elasticsearch recently and now I'm finding that even a simple form doesn't work (using the activerecord ...
0
votes
1answer
15 views
Sinatra Locals vs. Instance Variables
What exactly are Sinatra’s locals, and is there any difference between using them in templates as opposed to instance variables. Here’s what I mean by locals:
erb :template, :locals => {:variable ...
0
votes
0answers
7 views
Cannot build Jekyll blog using Sublime Text 2 Ant build
I reformatted and reinstalled Mountain Lion recently, and the new versions of Jekyll and/or Ruby and/or Ant broke my workflow. I use Sublime Text 2 to call an Ant build script which (among other ...
-2
votes
1answer
33 views
Ruby:Selecting a checkbox whose name startswith [closed]
I am trying to select a checkbox whose name starts with a particular string
find("//input[(@name).start_with?('00#{Num}_')]")
where Num is some random number
But i am getting the below error.Can ...
0
votes
1answer
36 views
What should I include in Git project?
My webapp is written in Ruby on Rails. I'm new to git and want to know what kind of files should I include in the project. Please mention what files should I push into git projects.