Now i am using the plugins spreadsheet(http://spreadsheet.rubyforge.org/) on ruby on rails, but i have a problem on merging cells, so who can help me to achieve the feature! thank you!
I'm using the ruby-mysql library under JRuby and get the following warnings:
/mysql/protocol.rb:530 warning: GC.disable does nothing on JRuby
Is there any way to get JRuby to stop complaining about this?
I created a scaffold of named pais (This is a word in Portuguese of Brazil and is the same that country), i created using the follow command:
ruby script\generate scaffold pais name:string abreviattion:string
First I changed the inflections to my local idiom, like that:
inflect.plural /^([a-zA-z]*)s$/i, '\1ses' #The plural of Pais is Paises
And when I tryied to open the page on http://localhost:3000/paises I'm receiving the follow error:
undefined method `edit_pais_path' for #<ActionView::Base:0x387fdf4>
Thanks in advance.
Hi,
I am trying to import contact list in my Ruby On Rails application.
I got succeed using sailthru API, but the problem is, it replies empty result for aol, msn, hotmail.
I also tried rails gem 'contacts', that is also not replying for all(only answers for gmail, yahoo, aol). :(
Thanks to reply in advance,
Alpesh Modi
Tell why you think Python, Perl, Ruby, etc is easiest for plugging in modules from other languages with minimal thought.
To clarify, an example: I want to write business logic in Python, but use functionality that conveniently exists as a Perl module.
In other words, which language "just works" with the most modules?
I've been trying to install Shoulda
script/plugin install git://github.com/thoughtbot/shoulda.git
but all I get is:
removing: C:/Documents and Settings/Danny/My Documents/Projects/Ruby On Rails/_ProjectName_/vendor/plugins/shoulda/.git
>
And the vender/plugins directory is empty. I have Rails 2.1.1 installed as a gem and have verified that 2.1.1 is loaded (using a puts inserted into config/boot.rb). Any ideas about what's going on?
(this is on a windows box)
I have a date with a time. I'm using ruby, but the language shouldn't matter.
d = "2010-04-01 13:00:00"
What is the best way to format this date for Mongo DB? By 'best' I mean, is there a certain format I could use where Mongo would recognize it as a date and might give me more-advanced filtering optons?
ie: If formatted correctly, could I ask Mongo to return all records whose month is '04'?
Thanks!
I have a Ruby on Rails app that needs process many background jobs simultaneously: anywhere from 5-6 at a time to up to 50-60 at a time depending on the time of day. Right now my app is running on Heroku, which charges $.05/hour per worker, regardless of how much CPU or memory the worker is using. This is costing me a boatload each month... up to $1200/mo. Are there any hosts that will allow me to do what I'm doing for significantly cheaper?
HELP!! I need to bundle a gem otherwise a published client's site will stay dead
MacBook-Pros-MacBook-Pro:pn
macbookpro$ sudo ruby script/generate sanitize
Missing the Rails 2.3.5 gem. Please `gem install -v=2.3.5 rails`, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version installed.
Is it possibe to skip a rule validating it using ruby code in treetop?
Say there is something like this:
rule short_words
[a-z]+ {
def method1
text_value
end
...
}
end
And I want the words size to be from 2 to 5 letters. Can I exit rule if I find that the length of text_value is not between 2 and 5?
Dear all,
IF I am to develop a native application on blackberry, what would be the recommended way to call remote JSON object? As I understand native blackberry apps is coded using Java, would it still be able to contact a remote JSON object from Ruby on Rails? Has there been any blackberry framework to ease this use case?
Thank you very much for your help. I really appreciate it.
I am a newbie to Amazon SQS and ruby on rails. And i am working on a project that some XML messages must be send to SQS. How do i do that?
Now i have this in the controller after the .save
def create
@thing = Thing.new(params[:thing])
respond_to do |format|
if @thing.save
message = @thing.to_xml
and in the model
inputqueue.send_message(message)
Is this the way i can send an XML file to SQS or??
I'm passing a date from Ruby to Javascript via JSON.
It comes into Javascript as "2010-03-24T10:00:00Z".
Now, how the heck do I format that in Javascript?
Its not the another language debate, its a decision making discussion.
I am a ASP.NET developer, but want to learn other frameworks/language (open source). I don't know from where i should start and why? Django and Rails both seems promising, but i am confused which one i should choose to start, or i should choose some other framework. I know learning the language (python or ruby) is must before start Django or Rails.
Please advise.
Given a large bounding box (say 1 km square), I want to divide this area into a set of smaller bounding boxes to form a grid pattern. I know there are some Earth geometry issues to contend with where. Can anyone help? I'm doing with with Ruby and I'm working with the excellent GeoKit library. Thank you!
When running Ruby code on NetBeans (like when running the tests) I'm having some failures because a program is not being found. That program is installed somewhere in /opt and while for the shell I get that added to my PATH, it seems NetBeans is not getting it.
How do I specify the PATH in NetBeans?
When I run:
rails generate rspec:install
I get this output:
identical .rspec
exist spec
identical spec/spec_helper.rb
Could not find "autotest" in any of your source paths. Your current source paths are:
(..)/rails_projects/sample_app/lib/templates/rspec/install
(..)/rspec-rails-2.3.0/lib/generators/rspec/install/templates
I'm new to RSpec, Rails and Ruby. Any tips on how make this work?
Hi,
I have a Ruby program that zips a directory tree of XML files using the rubyzip gem. My problem is that the file is starting to be heavy and I would like to increase the compression level, since compression time is not an issue.
I could not find in the rubyzip documentation a way to specify the compression level for the created ZIP file.
Anyone know how to change this setting?
I'm generating a PNG file in Flex from graphics drawn by user. I would like to send the file to Ruby on Rails backend and I'm using RubyAMF in other parts of the application.
I found ways to upload the file using FileReference which uses HTTP but I prefer to send using RubyAMF ,if possible, as it's more efficient.
If this is possible what is your suggested method?
I am investigating a switch from windows to linux struggle to find samples of design patterns applied in this world.
If i use python or ruby, what should i use for GUI ?
And what pattern : is MVC, MVVM or MVP any good ?
Or is there anything better ?
When ever I run make I get this 'uninitialized constant RDoc::RDoc' error
rake -T
(in Main)
rake aborted!
uninitialized constant RDoc::RDoc
C:/Ruby186/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2383:in `raw_load_rakefile'
(See full trace by running task with --trace)
--edit
Running --trace it seems the only non rails code is from rdoc_rails. Since other people seem to be able to run it fine I assume I am missing a gem or plugin but I can't figure out which.
Hi, I am new to ruby on rails.
I want to build an RSS feed aggregator.
How do I find out the trending topics from the stream of data[titles] from various RSS feeds.
Could you help me how to achieve this??
Looking forward for your help
Thanks in advance
Gautam
Hi there,
I'm looking for a tool that can highlight code (ruby, php, javascript...) like with an IDE and then export the code to html format so that when opening the html page the code looks just like with the IDE
Thanks.