while installing any Gem or doing any listing of gem gzip related error comes as shown below:-
C:\Documents and Settings\gangunra>gem install rhosync -v 2.0.0.beta7 --pre
ERROR: While executing gem ... (Zlib::GzipFile::Error)
not in gzip format
C:\Documents and Settings\gangunra>gem list rails -r
* REMOTE GEMS *
ERROR: While ex...
Hi all,
Is there any provisions in rails that would allow all AJAX POST requests from the site to pass without an authenticity_token?
I have a Jquery POST ajax call that calls a controller method, but I did not put any authenticity code in it and yet the call succeeds.
My ApplicationController does have 'request_forgery_protection' an...
in Ruby,
I just want to get rid of the last n characters of a string,
but the following doesn't work
"string"[0,-3]
nor
"string".slice(0, -3)
I'd like a clean method, not anything like
"string".chop.chop.chop
it may be trivial, please anyone teach me! thanks!
...
User in my web app are able to upload file. I use Paperclip to handle file attachment issue. Is there any method if I would like to remove any specific user-uploaded file programmatically?
...
Is there a way to configure restful_authentication such that you can get admin functionality e.g. suspension and purging accounts WITHOUT having to activate accounts via email?
...
Hi,
I start to using cassandra and I want to index my db with sphinx.
I wrote ruby script which is used as xmlpipe, and I configure sphinx to use it.
source xmlsrc
{
type = xmlpipe2
xmlpipe_command = /usr/local/bin/ruby /home/httpd/html/app/script/sphinxpipe.rb
}
When ...
Hi All,
I want to write a ruby web service client for a SOAP (JAX-WS) web service. I looked into soap4r and handsoap but couldnt find useful resources to write a (JAX-WS) client
Can you help me to find some resources and som way of doing it. Coz as i can see, my web service is developed using oracle JDeveloper and looks little differen...
So lets say I have a class like below
class List
include DataMapper::Resource
property :id, Serial
property :username, String
def self.my_username
return self[:username]
end
end
list=List.create(:username=>,'jim')
list.my_username
When I run this it tells me that the method cannot be found, and on more investigation ...
Hi
I want work on a remote maschine within an ssh session:
login on the remote server
su
make my work
With my script a can do step 1 and 2 works. While executing the su command, I can send the password, and got the answer I'm expecting (
on_data: data = gis@v04ree:~>
got gis@v04ree:~>
But then, what should I do? I'm sitting ...
I am a windows developer currently getting into Rails. While you can develop on RoR Windows, it's not the ideal experience. Things are glitchy and running cucumber tests are painfully slow.
So, would I be able to have a decent dev experience running Linux in a VM for doing RoR development, or should I bite the bullet and just do a dual ...
In the Go programming language, you can send Messages around using a construct called "Channels".
http://golang.org/doc/effective_go.html#channels
I would love to use something like that in Ruby, especially for IPC.
Pseudocode of what I want:
channel = Channel.new
fork do
3.times{ channel.send("foo ") }
exit!
end
Thread.new do
...
I have the following routes in my app:
GET /admin/comments(.:format) {:controller=>"admin/comments", :action=>"index"}
admin_comments POST /admin/comments(.:format) {:controller=>"admin/comments", :action=>"create"}
new_admin_comment GET /admin/comments/new(.:fo...
Hello.
I am running rake task(which must be being launched for ~24 hours) but it stops in unexpected time.
STRERR is empty.
The code which runs the task:
@bucket = Bucket.find(params[:id])
cmd = "#{`which rake`.chomp} bucket:generate[#{@bucket.id}] --trace 2>&1 > #{Rails.root}/log/bucket-#{@network.id}.log &" # 2> #{Rails.root}/log/buck...
Is Ruby's Net::HTTP threadsafe?
(Aside from the version_1_1 and version_1_2 methods which it explicitly says aren't)
...
i am trying to get an iframe facebook application running with ruby. unfortunately the facebooker gem seems to be broken and even the developer of facebooker suggests using the facebooker2 gem and some workarounds.
see http://www.elevatedcode.com/articles/2010/05/12/facebook-iframe-applications-and-the-new-open-graph-api/#extended
is t...
Hi,
I'm a big fan of Resharper in visual studio. It has some awesome refactoring tools, similar to what you get in Ecplipse for Java. Is there anything like this for Ruby? Better yet, is there a plugin or something into VIM that does refactoring for Ruby code like renaming all instances of a method or variable, renaming classes sitew...
I'm a little new to rails sorry if this seems basic
Alright so here's the deal I'm creating an application that will have many users and all the users have many songs. However when I try to create a song I get the following error:No action responded to 1. Actions: create and new and my browser is at the url: http://0.0.0.0:3000/users/1/...
Is it possible in a website search form to enter in series of searches? I have a list of destinations and would like to see if for each destination the search returns a result or throws an error.
...
I am trying to move to GVim(cream) as my primary editor on Ubuntu. I am using the wonderful rails.vim, however I also am using RVM.
Rvm works fine when doing things in a shell, and the ruby version I would like to use in rails.vim is the version set as default (but not the system version).
When I try to run things like
:Rgenerate migr...
How do I mark a cucumber scenario as pending so it doesn't get counted as a passed?
Scenario: Guest should not see edit link
# pending implementation
Shouldn't I be able to mark is as pending?
...