Ruby on Rails Wednesday, February 29, 2012

hai frnds... im beginer. i want to know how to convert text box
fields to text file and download the file... plz help me

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Ruby on Rails

after doing some googling I got the answer

wrong way :
$("#allclick").update("<%= escape_javascript(render(:partial =>
"goclick")) %>");

====================================================================
correct way :
$("#allclick").html("<%= escape_javascript(render(:partial =>
"goclick")) %>");

====================================================================
Instead of update now I'm using html

--
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 post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Ruby on Rails

+1 for Vim. I prefer the Linux console version.

On 29 фев, 09:37, Max Schubert <max.schub...@gmail.com> wrote:
> Tmux + tmuxinator + vim + Janus (bundle of really useful vim plugins
> for ruby developers) - just started using this combo and it is great -
> lets you easily build your own very powerful IDE.
>
> Max
>
> On 2/29/12, Paul <p...@nines.org> wrote:
>
>
>
>
>
>
>
> > +1 for RubyMine. Everything is at your fingertips, and the debugging
> > is great. I keep discovering new features that speed up development.
>
> > On Tue, Feb 28, 2012 at 9:20 PM, soldier.coder
> > <geekprogrammer...@googlemail.com> wrote:
> >> First: Free your mind from the shackle that comes from false belief
> >> that IDE's are necessary for superior productivity.  IDE's are great
> >> for compiledh languages like C or C++ as they can spot syntax errors
> >> that will cause your program to not compile.  Instead, embrace
> >> Behavior Driven Development, write tests for code you haven't written
> >> yet, tests for code you have written, consider how to refactor the
> >> code that results.  Move faster by going slower!  Learn to wield your
> >> editor like a samurai's sword -- an extension of yourself.
>
> >> From Agile Web Development with Rails:
> >> "It may surprise you to know that most Rails [and Ruby] developers
> >> don't use fully fledged IDE's for Ruby or Rails (although some of the
> >> environments come close).  Indeed many Rails developers use plain old
> >> editors.  And it turns out that this isn't as much of a problem as you
> >> might think.  With other less expressive languages, programmers rely
> >> on IDEs to do much of the grunt work for them, because IDE's do code
> >> generation, assist with navigation, and compile incrementally to give
> >> early warning of errors.
> >> With Ruby, however, much of this support just isn't necessary. Editors
> >> such as Textmate and BBEdit [or E for Windows, or VIM for Linux] give
> >> you 90 percent of what you'd get from and IDE but are far lighter
> >> weight.  Just about the only useful IDE facility that's missing is
> >> refactoring support."
>
> >> SC
>
> >> On Feb 28, 9:46 am, nada <nn.r...@gmail.com> wrote:
> >>> Hi,
>
> >>> I'm a novice in Ruby , I want to ask what is the best IDEs to use Ruby
> >>> for beginners ?
>
> >>> Is eclipse a good choice ?
>
> >>> any idea?
>
> >>> Thanks a lot!
> >>> Nada
>
> >> --
> >> You received this message because you are subscribed to the Google Groups
> >> "Ruby on Rails: Talk" group.
> >> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >> rubyonrails-talk+unsubscribe@googlegroups.com.
> >> For more options, visit this group at
> >>http://groups.google.com/group/rubyonrails-talk?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Ruby on Rails: Talk" group.
> > To post to this group, send email to rubyonrails-talk@googlegroups.com.
> > To unsubscribe from this group, send email to
> > rubyonrails-talk+unsubscribe@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/rubyonrails-talk?hl=en.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Ruby on Rails

I'm curious what you have as far as relationships in your FriendType
model? Does it belong_to :user?

If so,

<%= f.collection_select(:user_id, FriendType.all, :id, :name, options=
{:prompt => false}, {:class => 'yourCustomClass'}) %>

Hope that helps you out.

--
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 post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Ruby on Rails

Could someone point me to a reference that explains how I would test
the order of elements on an HTML page?

For example, in RSpec I would like to verify that the content of one
<p> element appears before the content of another.

response.should have_selector("p", :content => "Should appear first")
response.should have_selector("p", :content => "Should appear second")

The two lines above test that the 2 contents appear, but I don't know
how to test that the first content appears before the second.

Thanks

Mike

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Ruby on Rails

sudo apt-get install libmysql-ruby libmysqlclient-dev

Enjoy.

--
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 post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Ruby on Rails

There are a few ways to do this. If you are looking for an ajax
response you can do the following:

(this is an example with a new action)

<%= form_for Model.new, :remote => true do |f| %>

<div>Your Label</div>
<div>
<%= f.collection_select(:some_id, Model.all, :id, :name, :class =>
'yourclass' %>
</div>

<% end %>

Then in your javascript do something similar to:

$('select#model_some_id').bind({
click:function () {
// do something when it's clicked
},
keydown:function () {
// do something when a key is pressed down in the select
},
keyup:function () {
// do something when a key is pressed up in the select
}
});

This handles most of the browser events you'll find in Mozilla, IE,
Safari, etc. as far as handling events. Some change events are not
noticed by Mozilla (for instance if someone is using drop down arrows
while in a select field).

There are quite a few ajax tutorials out there.

--
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 post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Ruby on Rails

Hi every:
I'm starting to learn Ruby and RoR and have some problems getting things
work. I have a CentOS 6 dev server in which I follow this guide (sorry
for the spanish)
http://articles.slicehost.com/2009/4/7/centos-ruby-on-rails to install
Ruby and RoR. So I get installed gems 1.3.1 but if I run gem update and
gem update --system then I go back to gems 1.8.17 and then rails said me
that RubyGems 1.3.5> is needed to install. See the commands execute by
me below and the results of each:

[root@devserver rubygems-1.3.1]# gem install rails
ERROR: Error installing rails:
i18n requires RubyGems version >= 1.3.5

[root@devserver rubygems-1.3.1]# gem update
Updating installed gems
Nothing to update
[root@devserver rubygems-1.3.1]# gem update --system
Updating RubyGems
Updating rubygems-update
Successfully installed rubygems-update-1.8.17
:0:Warning: Gem::SourceIndex#search support for String patterns is
deprecated
Updating RubyGems to 1.8.17
Installing RubyGems 1.8.17
RubyGems 1.8.17 installed

Any help on this? Regards and thanks in advance
--
Ing. Reynier Perez Mira
eMail: reynierpm@gmail.com, reynierpm@hotmail.com
Skype: reynierpm
Mobile: +58 424.180.5609
Site: http://reynierpm.site90.com

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Ruby on Rails

Unicorn is "clean".

What I should have wrote is "In addition to Unicorn, are there any
other HTTP Servers, for Ruby on Rails, that "cleanly" support HTTP
streaming?"

Thank you!

On Feb 29, 10:41 pm, nosretep <playersp...@gmail.com> wrote:
> Are there any "clean" alternatives to Unicorn for HTTP streaming?
>
> By "clean" I mean using the :stream option during render.
>
> class MyController < ActionController::Base
>   def index
>     render :stream => true
>   end
> end

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Ruby on Rails

Are there any "clean" alternatives to Unicorn for HTTP streaming?

By "clean" I mean using the :stream option during render.

class MyController < ActionController::Base
def index
render :stream => true
end
end

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Ruby on Rails

I agree with Adrian, it seems that the error is complaining about mySQL not being installed.


Are you sure you have the mySQL server installed on your system? if yes

Then make sure to add the 'mysql2' gem to your gemfile.

Cheers!!
2012/2/29 Adrian Caceres <caceresad@gmail.com>
Sure the problem is WEBrick?  Error message seems to be complaining about mysql.  Did you install mysql?



On 02/29/2012 03:48 PM, Joel wrote:
Hello,

I started a class on RoR, and the instructor is using WEBrick, which
he says "ships with Rails."  Is that still true?  I've followed all
the other instructions, I believe, and I'm not getting good messages
when I type   rails server  .  Instead I get

joelrwesley$ rails server
/Users/joelrwesley/.rvm/gems/ruby-1.9.3-p125/gems/mysql2-0.3.11/lib/
mysql2.rb:9:in `require': dlopen(/Users/joelrwesley/.rvm/gems/
ruby-1.9.3-p125/gems/mysql2-0.3.11/lib/mysql2/mysql2.bundle, 9):
Library not loaded: libmysqlclient.18.dylib (LoadError)
  Referenced from: /Users/joelrwesley/.rvm/gems/ruby-1.9.3-p125/gems/
mysql2-0.3.11/lib/mysql2/mysql2.bundle
  Reason: image not found - /Users/joelrwesley/.rvm/gems/ruby-1.9.3-
p125/gems/mysql2-0.3.11/lib/mysql2/mysql2.bundle
       from /Users/joelrwesley/.rvm/gems/ruby-1.9.3-p125/gems/mysql2-0.3.11/
lib/mysql2.rb:9:in `<top (required)>'
       from /Users/joelrwesley/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.0.22/
lib/bundler/runtime.rb:68:in `require'
       from /Users/joelrwesley/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.0.22/
lib/bundler/runtime.rb:68:in `block (2 levels) in require'
       from /Users/joelrwesley/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.0.22/
lib/bundler/runtime.rb:66:in `each'
       from /Users/joelrwesley/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.0.22/
lib/bundler/runtime.rb:66:in `block in require'
       from /Users/joelrwesley/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.0.22/
lib/bundler/runtime.rb:55:in `each'
       from /Users/joelrwesley/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.0.22/
lib/bundler/runtime.rb:55:in `require'
       from /Users/joelrwesley/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.0.22/
lib/bundler.rb:122:in `require'
       from /Users/joelrwesley/Desktop/Sites/simple_cms/config/
application.rb:7:in `<top (required)>'
       from /Users/joelrwesley/.rvm/gems/ruby-1.9.3-p125/gems/railties-3.2.1/
lib/rails/commands.rb:53:in `require'
       from /Users/joelrwesley/.rvm/gems/ruby-1.9.3-p125/gems/railties-3.2.1/
lib/rails/commands.rb:53:in `block in<top (required)>'
       from /Users/joelrwesley/.rvm/gems/ruby-1.9.3-p125/gems/railties-3.2.1/
lib/rails/commands.rb:50:in `tap'
       from /Users/joelrwesley/.rvm/gems/ruby-1.9.3-p125/gems/railties-3.2.1/
lib/rails/commands.rb:50:in `<top (required)>'
       from script/rails:6:in `require'
       from script/rails:6:in `<main>'
joelrwesley$


Thanks,
Joel


--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.


--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Ruby on Rails

I was reading the book "Agile Web Development with Rails 4th Edition".
In Chapter 11, Iteration C2: Adding a Page Layout
1 <!DOCTYPE html>
- <html>
- <head>
- <title>Pragprog Books Online Store</title>
5 <%= stylesheet_link_tag "scaffold" %>
- <%= stylesheet_link_tag "depot", :media => "all" %>
- <%= javascript_include_tag :defaults %>
- <%= csrf_meta_tag %>
- </head>

"stylesheet_link_tag" and "javascript_include_tag" dosn't work. My
Rails version is 3.2.1. The book was written using Rails 3.0.5.
How to modify stylesheet_link_tag parameters to fit Rails 3.2.1?

My files

hj@debian:~/depot$ ls app/assets/stylesheets/
application.css depot.css products.css.scss store.css.scss
carts.css.scss line_items.css.scss scaffolds.css.scss

hj@debian:~/depot$ ls app/assets/javascripts/
application.js depot.css products.js.coffee
carts.js.coffee line_items.js.coffee store.js.coffee
hj@debian:~/depot$

rails server outputs
Started GET "/assets/scaffold.css" for 127.0.0.1 at 2012-03-01
09:44:21 +0800
Served asset /scaffold.css - 404 Not Found (5ms)

ActionController::RoutingError (No route matches [GET] "/assets/
scaffold.css"):
actionpack (3.2.1) lib/action_dispatch/middleware/
debug_exceptions.rb:21:in `call'
actionpack (3.2.1) lib/action_dispatch/middleware/show_exceptions.rb:
56:in `call'
railties (3.2.1) lib/rails/rack/logger.rb:26:in `call_app'
railties (3.2.1) lib/rails/rack/logger.rb:16:in `call'
actionpack (3.2.1) lib/action_dispatch/middleware/request_id.rb:
22:in `call'
rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
rack (1.4.1) lib/rack/runtime.rb:17:in `call'
activesupport (3.2.1) lib/active_support/cache/strategy/
local_cache.rb:72:in `call'
rack (1.4.1) lib/rack/lock.rb:15:in `call'
actionpack (3.2.1) lib/action_dispatch/middleware/static.rb:53:in
`call'
railties (3.2.1) lib/rails/engine.rb:479:in `call'
railties (3.2.1) lib/rails/application.rb:220:in `call'
rack (1.4.1) lib/rack/content_length.rb:14:in `call'
railties (3.2.1) lib/rails/rack/log_tailer.rb:14:in `call'
rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'
/home/hj/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/webrick/
httpserver.rb:138:in `service'
/home/hj/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/webrick/
httpserver.rb:94:in `run'
/home/hj/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/webrick/server.rb:
191:in `block in start_thread'


Rendered /home/hj/.rvm/gems/ruby-1.9.3-p0/gems/actionpack-3.2.1/lib/
action_dispatch/middleware/templates/rescues/routing_error.erb within
rescues/layout (1.2ms)


Started GET "/assets/defaults.js" for 127.0.0.1 at 2012-03-01 09:44:21
+0800
Served asset /defaults.js - 404 Not Found (5ms)

ActionController::RoutingError (No route matches [GET] "/assets/
defaults.js"):
actionpack (3.2.1) lib/action_dispatch/middleware/
debug_exceptions.rb:21:in `call'
actionpack (3.2.1) lib/action_dispatch/middleware/show_exceptions.rb:
56:in `call'
railties (3.2.1) lib/rails/rack/logger.rb:26:in `call_app'
railties (3.2.1) lib/rails/rack/logger.rb:16:in `call'
actionpack (3.2.1) lib/action_dispatch/middleware/request_id.rb:
22:in `call'
rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
rack (1.4.1) lib/rack/runtime.rb:17:in `call'
activesupport (3.2.1) lib/active_support/cache/strategy/
local_cache.rb:72:in `call'
rack (1.4.1) lib/rack/lock.rb:15:in `call'
actionpack (3.2.1) lib/action_dispatch/middleware/static.rb:53:in
`call'
railties (3.2.1) lib/rails/engine.rb:479:in `call'
railties (3.2.1) lib/rails/application.rb:220:in `call'
rack (1.4.1) lib/rack/content_length.rb:14:in `call'
railties (3.2.1) lib/rails/rack/log_tailer.rb:14:in `call'
rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'
/home/hj/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/webrick/
httpserver.rb:138:in `service'
/home/hj/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/webrick/
httpserver.rb:94:in `run'
/home/hj/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/webrick/server.rb:
191:in `block in start_thread'


--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Ruby on Rails

Sure the problem is WEBrick? Error message seems to be complaining
about mysql. Did you install mysql?


On 02/29/2012 03:48 PM, Joel wrote:
> Hello,
>
> I started a class on RoR, and the instructor is using WEBrick, which
> he says "ships with Rails." Is that still true? I've followed all
> the other instructions, I believe, and I'm not getting good messages
> when I type rails server . Instead I get
>
> joelrwesley$ rails server
> /Users/joelrwesley/.rvm/gems/ruby-1.9.3-p125/gems/mysql2-0.3.11/lib/
> mysql2.rb:9:in `require': dlopen(/Users/joelrwesley/.rvm/gems/
> ruby-1.9.3-p125/gems/mysql2-0.3.11/lib/mysql2/mysql2.bundle, 9):
> Library not loaded: libmysqlclient.18.dylib (LoadError)
> Referenced from: /Users/joelrwesley/.rvm/gems/ruby-1.9.3-p125/gems/
> mysql2-0.3.11/lib/mysql2/mysql2.bundle
> Reason: image not found - /Users/joelrwesley/.rvm/gems/ruby-1.9.3-
> p125/gems/mysql2-0.3.11/lib/mysql2/mysql2.bundle
> from /Users/joelrwesley/.rvm/gems/ruby-1.9.3-p125/gems/mysql2-0.3.11/
> lib/mysql2.rb:9:in `<top (required)>'
> from /Users/joelrwesley/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.0.22/
> lib/bundler/runtime.rb:68:in `require'
> from /Users/joelrwesley/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.0.22/
> lib/bundler/runtime.rb:68:in `block (2 levels) in require'
> from /Users/joelrwesley/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.0.22/
> lib/bundler/runtime.rb:66:in `each'
> from /Users/joelrwesley/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.0.22/
> lib/bundler/runtime.rb:66:in `block in require'
> from /Users/joelrwesley/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.0.22/
> lib/bundler/runtime.rb:55:in `each'
> from /Users/joelrwesley/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.0.22/
> lib/bundler/runtime.rb:55:in `require'
> from /Users/joelrwesley/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.0.22/
> lib/bundler.rb:122:in `require'
> from /Users/joelrwesley/Desktop/Sites/simple_cms/config/
> application.rb:7:in `<top (required)>'
> from /Users/joelrwesley/.rvm/gems/ruby-1.9.3-p125/gems/railties-3.2.1/
> lib/rails/commands.rb:53:in `require'
> from /Users/joelrwesley/.rvm/gems/ruby-1.9.3-p125/gems/railties-3.2.1/
> lib/rails/commands.rb:53:in `block in<top (required)>'
> from /Users/joelrwesley/.rvm/gems/ruby-1.9.3-p125/gems/railties-3.2.1/
> lib/rails/commands.rb:50:in `tap'
> from /Users/joelrwesley/.rvm/gems/ruby-1.9.3-p125/gems/railties-3.2.1/
> lib/rails/commands.rb:50:in `<top (required)>'
> from script/rails:6:in `require'
> from script/rails:6:in `<main>'
> joelrwesley$
>
>
> Thanks,
> Joel
>

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Ruby on Rails

I have the same problem. Here is an attempt to recreate the steps that
caused it for me:

Platform Windows 7 x64
- installed latest git (1.7.8.msysgit.0)
- installed RailsInstaller (ruby 1.9.3)
- installed DevKit
- installed Heroku tools w/o Git

I also have cygwin installed (not sure that is relevant but there have
been issues with mingw32 apps). After installing all of the above I did
the following:

- Ran "gems update"
- Followed Rails Tutorial exactly

The tutorial process failed at the step for pushing to Heroku with error
shown in the original question. I tried to work around the problem:

* Tried changing Gemfile back to "~> " versions
* Deleted extra local versions of installed railsties and
sass-rails, reinstalled only the specified versions
* Tried using sass-rails 3.2.4 in Gemfile in hopes the dependency
would correct itself

Nothing worked. Sometimes a local "bundle update"/"bundle install" would
work, sometimes it would fail. It seemed to always work from a git bash
window and cmd.exe failed most of the time. But no matter what the
outcome locally, when I tried to push to Heroku it always gave the
error message above.

Rubygems.org clearly shows that the sass-rails dependency on railties
should be on 3.2.0.beta so something funky is going on. Just wish I knew
what it is.

--
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 post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Ruby on Rails

I have interesting situation.

a.rb #file
class A
include M
end

b.rb #file
module M
include X
extend Y
end
module X
def instance_method
end
end
module Y
def class_method
end
end

A.class_method => undefined method class_method

Thats strange because what I expect to happen is module M extends Y so
those class methods of Y are copied into A, and hence the A object can
access those class methods.

But thats not what happened. Ruby couldnt find the class methods. Yet
when I change to this it worked:

a.rb #file
class A
include M
end

module M

def self.included(base)
base.send :include, X
base.send :extend, Y
end

module X
def instance_method
end
end

module Y
def class_method
end
end
end

A.class_method => nil

So this works, and the only difference is that X and Y modules are
declared in M. Also I use the included hook which gets called when M
is included in class A, and then passes A into argument list. Then we
dynamically send methods (since include is a private method of A) of
A, particuarly the inclue and extend methods passing our modules as
arguments. And now it works.

But why didnt the first example work?

thanks for response

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Ruby on Rails

Joel wrote in post #1049544:
> Hello,
>
> I started a class on RoR, and the instructor is using WEBrick, which
> he says "ships with Rails." Is that still true? I've followed all
> the other instructions, I believe, and I'm not getting good messages
> when I type rails server . Instead I get

Actually, I don't think that's quite accurate. I pretty sure WEBrick get
installed with Ruby.

In any case I don't use WEBRick. My particular preference is Phusion
Passenger. I use the "standalone" for development.

$ gem install passenger
$ cd my_rails_app
$ passenger start

This works great for my needs.

--
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 post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Ruby on Rails

thanks for responses, the ultimate goal was just to ensure a list of
500 (no more or less) unique random decimals that are 3 places which
would be generated only one time. Currently Im storing them as a float
in the mysql database.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Ruby on Rails

On Wed, Feb 29, 2012 at 6:48 PM, Joel <joel.wesley@gmail.com> wrote:
> Hello,
>
> I started a class on RoR, and the instructor is using WEBrick, which
> he says "ships with Rails."  Is that still true?  I've followed all
> the other instructions, I believe, and I'm not getting good messages
> when I type   rails server  .  Instead I get
>

Did you start with 'bundle install'?

If then also read this post
http://stackoverflow.com/questions/4546698/library-not-loaded-libmysqlclient-16-dylib-error-when-trying-to-run-rails-serv

--
Greg Akins
http://twitter.com/akinsgre

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Ruby on Rails

Hello,

I started a class on RoR, and the instructor is using WEBrick, which
he says "ships with Rails." Is that still true? I've followed all
the other instructions, I believe, and I'm not getting good messages
when I type rails server . Instead I get

joelrwesley$ rails server
/Users/joelrwesley/.rvm/gems/ruby-1.9.3-p125/gems/mysql2-0.3.11/lib/
mysql2.rb:9:in `require': dlopen(/Users/joelrwesley/.rvm/gems/
ruby-1.9.3-p125/gems/mysql2-0.3.11/lib/mysql2/mysql2.bundle, 9):
Library not loaded: libmysqlclient.18.dylib (LoadError)
Referenced from: /Users/joelrwesley/.rvm/gems/ruby-1.9.3-p125/gems/
mysql2-0.3.11/lib/mysql2/mysql2.bundle
Reason: image not found - /Users/joelrwesley/.rvm/gems/ruby-1.9.3-
p125/gems/mysql2-0.3.11/lib/mysql2/mysql2.bundle
from /Users/joelrwesley/.rvm/gems/ruby-1.9.3-p125/gems/mysql2-0.3.11/
lib/mysql2.rb:9:in `<top (required)>'
from /Users/joelrwesley/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.0.22/
lib/bundler/runtime.rb:68:in `require'
from /Users/joelrwesley/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.0.22/
lib/bundler/runtime.rb:68:in `block (2 levels) in require'
from /Users/joelrwesley/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.0.22/
lib/bundler/runtime.rb:66:in `each'
from /Users/joelrwesley/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.0.22/
lib/bundler/runtime.rb:66:in `block in require'
from /Users/joelrwesley/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.0.22/
lib/bundler/runtime.rb:55:in `each'
from /Users/joelrwesley/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.0.22/
lib/bundler/runtime.rb:55:in `require'
from /Users/joelrwesley/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.0.22/
lib/bundler.rb:122:in `require'
from /Users/joelrwesley/Desktop/Sites/simple_cms/config/
application.rb:7:in `<top (required)>'
from /Users/joelrwesley/.rvm/gems/ruby-1.9.3-p125/gems/railties-3.2.1/
lib/rails/commands.rb:53:in `require'
from /Users/joelrwesley/.rvm/gems/ruby-1.9.3-p125/gems/railties-3.2.1/
lib/rails/commands.rb:53:in `block in <top (required)>'
from /Users/joelrwesley/.rvm/gems/ruby-1.9.3-p125/gems/railties-3.2.1/
lib/rails/commands.rb:50:in `tap'
from /Users/joelrwesley/.rvm/gems/ruby-1.9.3-p125/gems/railties-3.2.1/
lib/rails/commands.rb:50:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
joelrwesley$


Thanks,
Joel

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Ruby on Rails

i am trying to learn how to setup and maintain a vps for some rails apps. i have used shared and managed hosting but now i am looking for the freedom and flexibility a vps offers. i signed up with linode to give me something to play around with until i feel comfortable to deploy my live apps to a vps. i want to learn best practices and how to do things right.


initially i plan on hosting only a few smaller rails apps, but hopefully more in the future.

i have searched google and read quite a bit, but was wondering if any of the rails professionals could point me in the direction of some good resources or give their input directly? 

i have also read through many of the stackscripts and some seem good, others don't even setup a firewall.

here are some of the questions that have been going through my head that i have been trying to figure out.

security
-all rails apps under one user or separate user for each app?
-is it necessary to change the ssh port?
-how insecure is keeping ssh passwords enabled?
-fail2ban?

keeping the software up to date
-apt will help keep the os and some apps up to date
-how to easily keep compiled software updated like nginx?
-how about ruby, gems, rails,...

which of the following is better for rails apps
which linux distro?
32bit vs 64bit?
iptables vs ufw?
apache vs nginx?
mysql vs postgresql?
passenger vs unicorn?
is it a good or bad idea to use rvm on a server?
rvm per user or system wide?

what are some good strategies for backing up the server in case of failure?

how do you monitor the resource usage to see if more ram or cpu is needed?
how much of what do you log and how do you monitor the logs?

thank you,
scott

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/1j35DMuUFUAJ.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Ruby on Rails

Yeah but I am sure this did work before. It's been on a web site for
quite some time and has been working. If what you're saying is right
then I'll have to look to see if somehow my sources have been broken...

--
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 post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Ruby on Rails

On Feb 29, 5:30 pm, John Lane <li...@ruby-forum.com> wrote:
> Hi list,
>
>
> wrong argument type Class (expected Module)
>
> Application Trace | Framework Trace | Full Trace
>
> lib/mymodule.rb:65:in `include'
> lib/mymodule.rb:65
> app/controllers/application.rb:8
>
> The code snippet referred to is a module of the form:
>
> 60 module Mymodule
> 61
> 62  require 'openssl'
> 63  include OpenSSL
> 64  include PKey
> 65  include Cipher
>
> So I suspect I have something wrong with my OpenSSL in rvm, but I don't
> know what.
>

>> require "openssl"
=> true
>> module Foo
| include OpenSSL::Cipher
| end
TypeError: wrong argument type Class (expected Module)
(ripl):5:in `include'
(ripl):5:in `<module:Foo>'
(ripl):4:in `<main>'

You're trying to include a class into a module, OpenSSL::Cipher is a
class while PKey and OpenSSL itself is a module.

--
Luis Lavena

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Ruby on Rails

Hi all,

I have a link_to method in rails for each letter of the alphabet (early
days yet, will put it in a loop later). I have the same for a console on
another page and that one works fine but the one on my page for the
letters does not.

I have the following in my model:

def index
user_relation = case params[:username].present?
when true then User.where(:username => params[:username])
else User
end

@users = user_relation.paginate :page=>params[:page], :order =>
'created_at desc', :per_page => 10
end

and this is an example in my index:

<%= link_to 'A', users_path(:username => 'A'), {:style=>'color:#FFFFFF',
:class => "tabel-3"}%>

Now if I click on A it does not return any results despite there being
many users with the letter A but if I was to for example put in the
brackets the name AdrianShaw (one of the users in my database) and click
A it would return that exact user. What it seems to be doing is search
but only for exact match results, anything less than the full word and
it does not return.

How would I go about doing this so that it gets all users with the first
letter A and so on?

Thanks
Christopher Jones

--
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 post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Ruby on Rails

http://apidock.com/rails/ActionView/Helpers/FormOptionsHelper/collection_select

might help you on this. It seems to depend on what exact objects
you've got set up. I'm not too clear on it myself!

-Dave

--
Dave Aronson:  Available Cleared Ruby on Rails Freelancer
(NoVa/DC/Remote) -- see www.DaveAronson.com, and blogs at
www.Codosaur.us, www.Dare2XL.com, www.RecruitingRants.com

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Ruby on Rails

Hi list,

It's been a while since I looked at rails and I am a but rusty. I'm
looking for a nudge in the right direction if anyone would be so kind to
help me.

I'm looking at something I did a few years back that I need to review
and upgrade. The last time I looked at this we were on Rails 2.0.2 so
that's what this code is for. So I am trying to get it running on that
environment to start off.

I have a RVM environment running rails 2.0.2 on ruby 1.8.7. I can run my
application but I get an error like the below.

wrong argument type Class (expected Module)

Application Trace | Framework Trace | Full Trace

lib/mymodule.rb:65:in `include'
lib/mymodule.rb:65
app/controllers/application.rb:8

The code snippet referred to is a module of the form:

60 module Mymodule
61
62 require 'openssl'
63 include OpenSSL
64 include PKey
65 include Cipher

So I suspect I have something wrong with my OpenSSL in rvm, but I don't
know what.


This code worked fine the last time I looked at it. The module is mixed
in to a controller.

I tried the below to test if openssl is available:

$ ruby -ropenssl -e "puts :Hello"
Hello

I would appreciate any pointers I can get to help me get started...

--
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 post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Ruby on Rails

On Tue, Feb 28, 2012 at 16:50, Dev Guy <devguy.ca@gmail.com> wrote:

> I want to add a dropdown selection box that when an item is selected a
> javascript function gets called, is there an easy way to do this with
> Rails?

Sure, though it's not Rails-specific; just use the onchange attribute. See:

http://www.w3schools.com/jsref/event_onchange.asp

for an intro to the concept.

-Dave

--
Dave Aronson:  Available Cleared Ruby on Rails Freelancer
(NoVa/DC/Remote) -- see www.DaveAronson.com, and blogs at
www.Codosaur.us, www.Dare2XL.com, www.RecruitingRants.com

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Ruby on Rails

Well a link_to creates a regular link in HTML so you need to style the a tag.


 #table-3 th a {
color: .....
}

Or if you want to style both regular text and links in that part:

 #table-3 th,
 #table-3 th a {
color: ...
}


Den onsdagen den 29:e februari 2012 kl. 19:16:51 UTC+1 skrev Ruby-Forum.com User:
I have a section of link to button's in my index that have associated
CSS which has a black background. Despite me in the css specifying the
text to be the color white it is staying just plain black.

How would I go about applying my own color to a link_to.

My index section is as followed:

 <div id="table-3">
   <table width="1160">
   <thead>
       <th><%= link_to 'Playstation 3', games_path(:console =>
'Playstation 3')%></th>
            .............................
   </thead>
   </table>
 </div>
and a section of my css

 #table-3 th {
font-size: 12px;
font-weight: normal;
color: #FFFFFF;
line-height: 40px;
margin-bottom: 10px;
font-weight: normal;
text-align: center;

  }
Thanks.

--
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 view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/AJRRRKsKhMYJ.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Ruby on Rails

Thanks in advance for any help on this.

I would like to search my DB for records using a Model.where
request... Using jquery I have access to the text within the select
option chosen from a drop box. Now, if only I could take this text and
assign it to a ruby instance variable, such as @brand.... I could then
insert the value into the 'where' request and pull the records
corresponding to the selected option.

It seems possible to assign a ruby variable to a jquery var, but not
the other way around. Is there, or could there be, a ruby function to
help with this?

Thanks,
Abram

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Ruby on Rails

I have a section of link to button's in my index that have associated
CSS which has a black background. Despite me in the css specifying the
text to be the color white it is staying just plain black.

How would I go about applying my own color to a link_to.

My index section is as followed:

<div id="table-3">
<table width="1160">
<thead>
<th><%= link_to 'Playstation 3', games_path(:console =>
'Playstation 3')%></th>
.............................
</thead>
</table>
</div>
and a section of my css

#table-3 th {
font-size: 12px;
font-weight: normal;
color: #FFFFFF;
line-height: 40px;
margin-bottom: 10px;
font-weight: normal;
text-align: center;

}
Thanks.

--
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 post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Ruby on Rails

good day i read about relativity gem but when i try to use it and make
a test file and build it gives me an error

=test.rb=
<pre>

require 'relativity'
opens_at = DayTime.new(9) #=> 09:00:00
closes_at = DayTime.new(12,30) #=> 12:30:00
</pre>


<pre>
/home/start/.rvm/gems/ruby-1.9.2-p290/gems/relativity-0.0.8/lib/
relativity/day_time/new.rb:24:in `BigDecimal': can't convert Fixnum
into String (TypeError)
from /home/start/.rvm/gems/ruby-1.9.2-p290/gems/relativity-0.0.8/lib/
relativity/day_time/new.rb:24:in `initialize'
from /home/start/Aptana Studio 3 Workspace/jquery/javascript/test.rb:
2:in `new'
from /home/start/Aptana Studio 3 Workspace/jquery/javascript/test.rb:
2:in `<main>'
</pre>

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Ruby on Rails

Hi, I am a bit of a rails novice and trying to work this out. Been
tearing my hair out over this for a long time.

I have 2 models that I am working on at the moment. The idea is that
Teams have many players and Players have many teams. I want to be able
to assign a starting team to a player when they are created.

class Team < ActiveRecord::Base
has_and_belongs_to_many :players

class Player < ActiveRecord::Base
has_and_belongs_to_many :teams

*Note: I have set up the correct join table and can insert these
relationships from the ruby console. *

At the moment I have this in my view:

<%= select(:player_id, :teams, Team.all.collect{|s| [s.name, s.id]})
%>

It collects all the team names however when I hit submit nothing is
sent. Am I missing out something?

Thank you. I have spent ages trying to sort this out.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Ruby on Rails

Hi Tom,


I work for Atlassian and have been using the following:

    https://github.com/trineo/jira-ruby/

Recently updated, built against JIRA 5.0 REST API, and maintained by an Atlassian Expert.

Cheers,
Nick



On Tuesday, 28 February 2012 09:01:14 UTC-8, Tom wrote:
I'm trying to evaluate what use I can make of JIRA with Rails/Ruby and am getting frustrated.

The jira4r gem will install but the soap4r gem won't load.

literally:  'irb -r soap4r' returns :cannot load such file...

I also set this up in a Gemfile and tried to run this from the rails console:
/Users/TAllison/projects/cs_jira/vendor/cache/ruby/1.9.1/gems/soap4r-1.5.8/lib/xsd/charset.rb:13: warning: variable $KCODE is no longer effective
/Users/TAllison/projects/cs_jira/vendor/cache/ruby/1.9.1/gems/soap4r-1.5.8/lib/xsd/iconvcharset.rb:9:in `<top (required)>': iconv will be deprecated in the future, use String#encode instead.
/Users/TAllison/projects/cs_jira/vendor/cache/ruby/1.9.1/gems/soap4r-1.5.8/lib/xsd/xmlparser.rb:74:in `<top (required)>': XML processor module not found. (RuntimeError)
    from /Users/TAllison/projects/cs_jira/vendor/cache/ruby/1.9.1/gems/soap4r-1.5.8/lib/soap/parser.rb:9:in `require'


I can't any updates to this since ~2010.  Which leads me to believe that this entire set of libraries is just a bunch of dead wood.
Software isn't updated.
No traffic on the mailing lists.

So my next question is -- does anyone use JIRA API with Ruby/Rails and if so -- how?
I'm really surprised at the complete lack of mention in the last 2 years and am wondering if I made a mistake picking Jira up as a potential solution for my business.

Any experiences?

On Tuesday, 28 February 2012 09:01:14 UTC-8, Tom wrote:
I'm trying to evaluate what use I can make of JIRA with Rails/Ruby and am getting frustrated.

The jira4r gem will install but the soap4r gem won't load.

literally:  'irb -r soap4r' returns :cannot load such file...

I also set this up in a Gemfile and tried to run this from the rails console:
/Users/TAllison/projects/cs_jira/vendor/cache/ruby/1.9.1/gems/soap4r-1.5.8/lib/xsd/charset.rb:13: warning: variable $KCODE is no longer effective
/Users/TAllison/projects/cs_jira/vendor/cache/ruby/1.9.1/gems/soap4r-1.5.8/lib/xsd/iconvcharset.rb:9:in `<top (required)>': iconv will be deprecated in the future, use String#encode instead.
/Users/TAllison/projects/cs_jira/vendor/cache/ruby/1.9.1/gems/soap4r-1.5.8/lib/xsd/xmlparser.rb:74:in `<top (required)>': XML processor module not found. (RuntimeError)
    from /Users/TAllison/projects/cs_jira/vendor/cache/ruby/1.9.1/gems/soap4r-1.5.8/lib/soap/parser.rb:9:in `require'


I can't any updates to this since ~2010.  Which leads me to believe that this entire set of libraries is just a bunch of dead wood.
Software isn't updated.
No traffic on the mailing lists.

So my next question is -- does anyone use JIRA API with Ruby/Rails and if so -- how?
I'm really surprised at the complete lack of mention in the last 2 years and am wondering if I made a mistake picking Jira up as a potential solution for my business.

Any experiences?

On Tuesday, 28 February 2012 09:01:14 UTC-8, Tom wrote:
I'm trying to evaluate what use I can make of JIRA with Rails/Ruby and am getting frustrated.

The jira4r gem will install but the soap4r gem won't load.

literally:  'irb -r soap4r' returns :cannot load such file...

I also set this up in a Gemfile and tried to run this from the rails console:
/Users/TAllison/projects/cs_jira/vendor/cache/ruby/1.9.1/gems/soap4r-1.5.8/lib/xsd/charset.rb:13: warning: variable $KCODE is no longer effective
/Users/TAllison/projects/cs_jira/vendor/cache/ruby/1.9.1/gems/soap4r-1.5.8/lib/xsd/iconvcharset.rb:9:in `<top (required)>': iconv will be deprecated in the future, use String#encode instead.
/Users/TAllison/projects/cs_jira/vendor/cache/ruby/1.9.1/gems/soap4r-1.5.8/lib/xsd/xmlparser.rb:74:in `<top (required)>': XML processor module not found. (RuntimeError)
    from /Users/TAllison/projects/cs_jira/vendor/cache/ruby/1.9.1/gems/soap4r-1.5.8/lib/soap/parser.rb:9:in `require'


I can't any updates to this since ~2010.  Which leads me to believe that this entire set of libraries is just a bunch of dead wood.
Software isn't updated.
No traffic on the mailing lists.

So my next question is -- does anyone use JIRA API with Ruby/Rails and if so -- how?
I'm really surprised at the complete lack of mention in the last 2 years and am wondering if I made a mistake picking Jira up as a potential solution for my business.

Any experiences?

On Tuesday, 28 February 2012 09:01:14 UTC-8, Tom wrote:
I'm trying to evaluate what use I can make of JIRA with Rails/Ruby and am getting frustrated.

The jira4r gem will install but the soap4r gem won't load.

literally:  'irb -r soap4r' returns :cannot load such file...

I also set this up in a Gemfile and tried to run this from the rails console:
/Users/TAllison/projects/cs_jira/vendor/cache/ruby/1.9.1/gems/soap4r-1.5.8/lib/xsd/charset.rb:13: warning: variable $KCODE is no longer effective
/Users/TAllison/projects/cs_jira/vendor/cache/ruby/1.9.1/gems/soap4r-1.5.8/lib/xsd/iconvcharset.rb:9:in `<top (required)>': iconv will be deprecated in the future, use String#encode instead.
/Users/TAllison/projects/cs_jira/vendor/cache/ruby/1.9.1/gems/soap4r-1.5.8/lib/xsd/xmlparser.rb:74:in `<top (required)>': XML processor module not found. (RuntimeError)
    from /Users/TAllison/projects/cs_jira/vendor/cache/ruby/1.9.1/gems/soap4r-1.5.8/lib/soap/parser.rb:9:in `require'


I can't any updates to this since ~2010.  Which leads me to believe that this entire set of libraries is just a bunch of dead wood.
Software isn't updated.
No traffic on the mailing lists.

So my next question is -- does anyone use JIRA API with Ruby/Rails and if so -- how?
I'm really surprised at the complete lack of mention in the last 2 years and am wondering if I made a mistake picking Jira up as a potential solution for my business.

Any experiences?

On Tuesday, 28 February 2012 09:01:14 UTC-8, Tom wrote:
I'm trying to evaluate what use I can make of JIRA with Rails/Ruby and am getting frustrated.

The jira4r gem will install but the soap4r gem won't load.

literally:  'irb -r soap4r' returns :cannot load such file...

I also set this up in a Gemfile and tried to run this from the rails console:
/Users/TAllison/projects/cs_jira/vendor/cache/ruby/1.9.1/gems/soap4r-1.5.8/lib/xsd/charset.rb:13: warning: variable $KCODE is no longer effective
/Users/TAllison/projects/cs_jira/vendor/cache/ruby/1.9.1/gems/soap4r-1.5.8/lib/xsd/iconvcharset.rb:9:in `<top (required)>': iconv will be deprecated in the future, use String#encode instead.
/Users/TAllison/projects/cs_jira/vendor/cache/ruby/1.9.1/gems/soap4r-1.5.8/lib/xsd/xmlparser.rb:74:in `<top (required)>': XML processor module not found. (RuntimeError)
    from /Users/TAllison/projects/cs_jira/vendor/cache/ruby/1.9.1/gems/soap4r-1.5.8/lib/soap/parser.rb:9:in `require'


I can't any updates to this since ~2010.  Which leads me to believe that this entire set of libraries is just a bunch of dead wood.
Software isn't updated.
No traffic on the mailing lists.

So my next question is -- does anyone use JIRA API with Ruby/Rails and if so -- how?
I'm really surprised at the complete lack of mention in the last 2 years and am wondering if I made a mistake picking Jira up as a potential solution for my business.

Any experiences?

On Tuesday, 28 February 2012 09:01:14 UTC-8, Tom wrote:
I'm trying to evaluate what use I can make of JIRA with Rails/Ruby and am getting frustrated.

The jira4r gem will install but the soap4r gem won't load.

literally:  'irb -r soap4r' returns :cannot load such file...

I also set this up in a Gemfile and tried to run this from the rails console:
/Users/TAllison/projects/cs_jira/vendor/cache/ruby/1.9.1/gems/soap4r-1.5.8/lib/xsd/charset.rb:13: warning: variable $KCODE is no longer effective
/Users/TAllison/projects/cs_jira/vendor/cache/ruby/1.9.1/gems/soap4r-1.5.8/lib/xsd/iconvcharset.rb:9:in `<top (required)>': iconv will be deprecated in the future, use String#encode instead.
/Users/TAllison/projects/cs_jira/vendor/cache/ruby/1.9.1/gems/soap4r-1.5.8/lib/xsd/xmlparser.rb:74:in `<top (required)>': XML processor module not found. (RuntimeError)
    from /Users/TAllison/projects/cs_jira/vendor/cache/ruby/1.9.1/gems/soap4r-1.5.8/lib/soap/parser.rb:9:in `require'


I can't any updates to this since ~2010.  Which leads me to believe that this entire set of libraries is just a bunch of dead wood.
Software isn't updated.
No traffic on the mailing lists.

So my next question is -- does anyone use JIRA API with Ruby/Rails and if so -- how?
I'm really surprised at the complete lack of mention in the last 2 years and am wondering if I made a mistake picking Jira up as a potential solution for my business.

Any experiences?

On Tuesday, 28 February 2012 09:01:14 UTC-8, Tom wrote:
I'm trying to evaluate what use I can make of JIRA with Rails/Ruby and am getting frustrated.

The jira4r gem will install but the soap4r gem won't load.

literally:  'irb -r soap4r' returns :cannot load such file...

I also set this up in a Gemfile and tried to run this from the rails console:
/Users/TAllison/projects/cs_jira/vendor/cache/ruby/1.9.1/gems/soap4r-1.5.8/lib/xsd/charset.rb:13: warning: variable $KCODE is no longer effective
/Users/TAllison/projects/cs_jira/vendor/cache/ruby/1.9.1/gems/soap4r-1.5.8/lib/xsd/iconvcharset.rb:9:in `<top (required)>': iconv will be deprecated in the future, use String#encode instead.
/Users/TAllison/projects/cs_jira/vendor/cache/ruby/1.9.1/gems/soap4r-1.5.8/lib/xsd/xmlparser.rb:74:in `<top (required)>': XML processor module not found. (RuntimeError)
    from /Users/TAllison/projects/cs_jira/vendor/cache/ruby/1.9.1/gems/soap4r-1.5.8/lib/soap/parser.rb:9:in `require'


I can't any updates to this since ~2010.  Which leads me to believe that this entire set of libraries is just a bunch of dead wood.
Software isn't updated.
No traffic on the mailing lists.

So my next question is -- does anyone use JIRA API with Ruby/Rails and if so -- how?
I'm really surprised at the complete lack of mention in the last 2 years and am wondering if I made a mistake picking Jira up as a potential solution for my business.

Any experiences?

On Tuesday, 28 February 2012 09:01:14 UTC-8, Tom wrote:
I'm trying to evaluate what use I can make of JIRA with Rails/Ruby and am getting frustrated.

The jira4r gem will install but the soap4r gem won't load.

literally:  'irb -r soap4r' returns :cannot load such file...

I also set this up in a Gemfile and tried to run this from the rails console:
/Users/TAllison/projects/cs_jira/vendor/cache/ruby/1.9.1/gems/soap4r-1.5.8/lib/xsd/charset.rb:13: warning: variable $KCODE is no longer effective
/Users/TAllison/projects/cs_jira/vendor/cache/ruby/1.9.1/gems/soap4r-1.5.8/lib/xsd/iconvcharset.rb:9:in `<top (required)>': iconv will be deprecated in the future, use String#encode instead.
/Users/TAllison/projects/cs_jira/vendor/cache/ruby/1.9.1/gems/soap4r-1.5.8/lib/xsd/xmlparser.rb:74:in `<top (required)>': XML processor module not found. (RuntimeError)
    from /Users/TAllison/projects/cs_jira/vendor/cache/ruby/1.9.1/gems/soap4r-1.5.8/lib/soap/parser.rb:9:in `require'


I can't any updates to this since ~2010.  Which leads me to believe that this entire set of libraries is just a bunch of dead wood.
Software isn't updated.
No traffic on the mailing lists.

So my next question is -- does anyone use JIRA API with Ruby/Rails and if so -- how?
I'm really surprised at the complete lack of mention in the last 2 years and am wondering if I made a mistake picking Jira up as a potential solution for my business.

Any experiences?

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/qmWaq8NbQbMJ.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Ruby on Rails

RubyMine http://www.jetbrains.com/ruby/index.html

On Tue, Feb 28, 2012 at 6:46 PM, nada <nn.roh1@gmail.com> wrote:
Hi,

I'm a novice in Ruby , I want to ask what is the best IDEs to use Ruby
for beginners ?

Is eclipse a good choice ?

any idea?

Thanks a lot!
Nada

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.


--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Ruby on Rails

You probably want to use $("#allclick").update instead of $("allclick").update


Note the # that indicates you are selecting an element by the ID.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/vwmay5y73OwJ.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Ruby on Rails

I am using cocoon from github to deal with accepts_nested_attributes_for. In my partial i am trying to manipulate nested attributes but it is not working. My code is in my partial :

.nested-fields
 
= f.inputs do
   
= f.object.myarrayfield.length

I have an error message :

undefined method `length' for nil:NilClass

If I do only that

.nested-fields
 
= f.inputs do
   
= f.object.myarrayfield

There is no error message and the page give me the value of the field :

[1,2]

The length method should give me 2 not nil, do you know why ?

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/uuu0qyyW8l8J.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.