Ruby on Rails Monday, October 31, 2011

Alex Mercer wrote in post #1029306:
> Try to install dev lib for zlib:
> $ sudo apt-get -y install zlib zlib-devel

thank for answer..

i already try this command but nothing is working..

below is addition information of my problem when i try to install rail
using --debug command.i hope any expert can help me to solve this
problem..
your help is very appreciated.thank you very much.

oneadmin@oneadmin:/var/lib/gems/1.8$ sudo gem install rails --debug
Exception `NameError' at
/usr/lib/ruby/1.8/rubygems/command_manager.rb:161 - uninitialized
constant Gem::Commands::InstallCommand
Exception `Gem::LoadError' at /usr/lib/ruby/1.8/rubygems.rb:827 - Could
not find RubyGem test-unit (>= 0)

Exception `Gem::LoadError' at /usr/lib/ruby/1.8/rubygems.rb:827 - Could
not find RubyGem sources (> 0.0.1)

Exception `EOFError' at /usr/lib/ruby/1.8/net/protocol.rb:135 - end of
file reached
Exception `Zlib::DataError' at /usr/lib/ruby/1.8/rubygems.rb:599 -
incorrect header check
ERROR: While executing gem ... (Zlib::DataError)
incorrect header check
/usr/lib/ruby/1.8/rubygems.rb:599:in `inflate'
/usr/lib/ruby/1.8/rubygems.rb:599:in `inflate'
/usr/lib/ruby/1.8/rubygems/spec_fetcher.rb:100:in `fetch_spec'
/usr/lib/ruby/1.8/rubygems/spec_fetcher.rb:72:in `fetch'
/usr/lib/ruby/1.8/rubygems/spec_fetcher.rb:71:in `map'
/usr/lib/ruby/1.8/rubygems/spec_fetcher.rb:71:in `fetch'
/usr/lib/ruby/1.8/rubygems/dependency_installer.rb:99:in
`find_gems_with_sources'
/usr/lib/ruby/1.8/rubygems/dependency_installer.rb:192:in
`find_spec_by_name_and_version'
/usr/lib/ruby/1.8/rubygems/dependency_installer.rb:213:in
`install'
/usr/lib/ruby/1.8/rubygems/commands/install_command.rb:118:in
`execute'
/usr/lib/ruby/1.8/rubygems/commands/install_command.rb:115:in
`each'
/usr/lib/ruby/1.8/rubygems/commands/install_command.rb:115:in
`execute'
/usr/lib/ruby/1.8/rubygems/command.rb:257:in `invoke'
/usr/lib/ruby/1.8/rubygems/command_manager.rb:132:in
`process_args'
/usr/lib/ruby/1.8/rubygems/command_manager.rb:102:in `run'
/usr/lib/ruby/1.8/rubygems/gem_runner.rb:58:in `run'
/usr/bin/gem:21

--
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 tried many solution for making dynamical refersh div with rails.
I want to make like time posting i facebook. For example

Hello

2 minutes ago


I want time posting ("time minutes ago") auto refersh and update real
time do you have solution ?

--
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

https://github.com/thoughtbot/laptop

This pointer takes you to a project with a couple of scripts that
should setup what you need. It'sa polished and maintained set of
scripts for installing ruby on rails on a mac.

Best of luck!
-kevin

@kbedell

On Mon, Oct 31, 2011 at 5:33 PM, BigC <carl@winathans.com> wrote:
> I just got a mac book pro and was thinking I would try my hand a ruby
> and ruby on rails I have installed rails with sudo gem install rails
> four different times because no one says to be in a certain dir when
> you start the install. I do which rails and get Rails is not currently
> installed on this system. To get the latest version, simply type: I
> have tried adding to the path where gem says rails is and I have
> restarted the whole computer still no luck any help would be great. I
> used the video on Lynda.com followed from the beginning so I am not
> sure whats going on.
>
> --
> 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

here's the full trace


<code>
activerecord (3.1.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:409:in `retrieve_connection' activerecord (3.1.1) lib/active_record/connection_adapters/abstract/connection_specification.rb:107:in `retrieve_connection' activerecord (3.1.1) lib/active_record/connection_adapters/abstract/connection_specification.rb:89:in `connection' activerecord (3.1.1) lib/active_record/query_cache.rb:65:in `rescue in call' activerecord (3.1.1) lib/active_record/query_cache.rb:59:in `call' activerecord (3.1.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:477:in `call' actionpack (3.1.1) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (3.1.1) lib/active_support/callbacks.rb:392:in `_run_call_callbacks' activesupport (3.1.1) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (3.1.1) lib/action_dispatch/middleware/callbacks.rb:28:in `call' actionpack (3.1.1) lib/action_dispatch/middleware/reloader.rb:68:in `call' rack (1.3.5) lib/rack/sendfile.rb:101:in `call' actionpack (3.1.1) lib/action_dispatch/middleware/remote_ip.rb:48:in `call' actionpack (3.1.1) lib/action_dispatch/middleware/show_exceptions.rb:47:in `call' railties (3.1.1) lib/rails/rack/logger.rb:13:in `call' rack (1.3.5) lib/rack/methodoverride.rb:24:in `call' rack (1.3.5) lib/rack/runtime.rb:17:in `call' activesupport (3.1.1) lib/active_support/cache/strategy/local_cache.rb:72:in `call' rack (1.3.5) lib/rack/lock.rb:15:in `call' actionpack (3.1.1) lib/action_dispatch/middleware/static.rb:53:in `call' railties (3.1.1) lib/rails/engine.rb:456:in `call' railties (3.1.1) lib/rails/rack/content_length.rb:16:in `call' railties (3.1.1) lib/rails/rack/log_tailer.rb:14:in `call' rack (1.3.5) lib/rack/handler/webrick.rb:59:in `service' /usr/lib/ruby/1.9.1/webrick/httpserver.rb:111:in `service' /usr/lib/ruby/1.9.1/webrick/httpserver.rb:70:in `run' /usr/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread'
</code>

and here's the database.yml

<code>
development:
  adapter: mysql2
  host: 127.0.0.1
  encoding: utf8
  reconnect: false
  database: myapp_development
  pool: 5
  username: root
  password:*****
  socket: /var/run/mysqld/mysqld.sock
</code>

--
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/-/XxCouhDMnzwJ.
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 Mon, Oct 31, 2011 at 9:36 PM, Nikhil Goyal <goyal.nikhil89@gmail.com> wrote:


On Nov 1, 2:57 am, Everaldo Gomes <everaldo.go...@gmail.com> wrote:
> Hi!
>
> Try this:
>
> match ':/:token' => 'users#new' , constraints => {  :token =>
> /[a-zA-Z0-9]{8}/ }
>
> There is \w in regexp that means letter, number and underscore (accordlying
> rubular.com) , but I don't know if your token accepts underscores.
>


No there are no underscores. only alphabets and numbers.


So, try using /[a-zA-Z0-9]/ as your constraint. I can't remember a shortcut for alphanumeric, if there is one.


 
--
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

On Mon, Oct 31, 2011 at 2:33 PM, BigC <carl@winathans.com> wrote:
> I just got a mac book pro and was thinking I would try my hand a ruby
> and ruby on rails I have installed rails with sudo gem install rails
> four different times because no one says to be in a certain dir when
> you start the install.

That's because it doesn't matter. :-)

What is the output of `sudo gem install rails` ?

What is the output of `gem list --local` ?

What is the output of `gem env` ?

--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

--
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 Nov 1, 2:57 am, Everaldo Gomes <everaldo.go...@gmail.com> wrote:
> Hi!
>
> Try this:
>
> match ':/:token' => 'users#new' , constraints => {  :token =>
> /[a-zA-Z0-9]{8}/ }
>
> There is \w in regexp that means letter, number and underscore (accordlying
> rubular.com) , but I don't know if your token accepts underscores.
>


No there are no underscores. only alphabets and numbers.

--
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 Oct 31, 6:48 pm, NY <yan....@gmail.com> wrote:
> I observed this a few times, but not always happen, and if I down the
> migration and run again, it often works.
>
> My migration is really simple like:
>
> Foo.find_each do |foo|
>   foo.update_attribute(:bar, "baz")
> end
>
> Occasionally, it reports success, but not actually updated the
> attribute for the "bar" column of Foo object. It appears to just skip
> the whole thing and report success. And as I said, if I down it and
> run again, it has always worked.
>
> Anybody else has seen this problem before? I'm using Rails 3.0.10 but
> I had this problem with older 3.0.x versions as well.


Failed validations? You do have to be a little careful when using
models in migrations. Consider this scenario:

- The migration above is written
- A new validation is written and a migration that fixes the data
already present in the database is written

if you try and run both of these migrations in one go then the updates
in the first migration fail, because the latest validations are used.
if you try and run the migration a second time they succeed because by
now the data fixing migration has run. The way to get around this
particular problem is to use copies of the model in your migration
(the migrations guide on guides.rubyonrails.org discusses this)

Fred

--
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

That's exactly what I try to figure out. Migrations like this randomly
get "skipped" (reported success but didn't do anything).

It doesn't happen consistently (and doesn't happen most of time).

On Oct 31, 12:05 pm, Tim Shaffer <timshaf...@me.com> wrote:
> So whenever you migrate down and back up it works? Sounds like the
> migration is working properly then.
>
> Under what circumstances does it not work?

--
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!


Try this:

match ':/:token' => 'users#new' , constraints => {  :token => /[a-zA-Z0-9]{8}/ }

There is \w in regexp that means letter, number and underscore (accordlying rubular.com) , but I don't know if your token accepts underscores.




On Mon, Oct 31, 2011 at 7:32 PM, Nikhil Goyal <goyal.nikhil89@gmail.com> wrote:
I have a route that is something like this


 match '/:token' => 'users#new'


This token is 8 digit alphanumeric. I want to add validations on it so
that it matches with the route only when there are 8 digits present in
token.

How can I do that.

--
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 just got a mac book pro and was thinking I would try my hand a ruby
and ruby on rails I have installed rails with sudo gem install rails
four different times because no one says to be in a certain dir when
you start the install. I do which rails and get Rails is not currently
installed on this system. To get the latest version, simply type: I
have tried adding to the path where gem says rails is and I have
restarted the whole computer still no luck any help would be great. I
used the video on Lynda.com followed from the beginning so I am not
sure whats going on.

--
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 route that is something like this


match '/:token' => 'users#new'


This token is 8 digit alphanumeric. I want to add validations on it so
that it matches with the route only when there are 8 digits present in
token.

How can I do that.

--
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've created simple ROR app and commit it to HEROKU server. When I
change
config.assets.enabled = true
and put 'false' then it works but doesn't use my .css styesheets.

In case config.assets.enabled = true it doesn't work...

How can I fix it?

--
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 Mon, Oct 31, 2011 at 2:13 PM, Colin Law <clanlaw@googlemail.com> wrote:
> On 31 October 2011 17:07, Leonardo Mateo <leonardomateo@gmail.com> wrote:
>> On Mon, Oct 31, 2011 at 1:45 PM, david snbl <lists@ruby-forum.com> wrote:
>>> Hello,
>>>
>>> See if anyone can help me. I need to design a web application upload to
>>> a server that works with a database hosted on the PC user logged. This
>>> means that when a user logs on, the application configures the
>>> connection to a database hosted on your PC. Is it possible to RoR? Is it
>>> possible with Java,. Net, php ...?
>>>
>> This has nothing to do with the platform you use.
>> What on earth has Java/.NET/PHP to do with connecting a web app with a
>> database on the client machine?
>>
>> Have you ever thought about firewalls?, NAT? Port Forwarding?
>> Saying this is possible for all those platforms smells like trolling.
>
> I don't think he did say it was possible, he asked if it was.
Ohh you're right. I think I read it in a rush and I rushed myself to reply.

I'm sorry David, nevermind my words.
On the other hand, depending on what you need to do, HTML5's local
storage might be a good option.

>
> Colin
>
> --
> 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.
>
>

--
Leonardo Mateo.
There's no place like ~

--
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 Sunday, October 30, 2011 9:31:50 PM UTC-4, John Merlino wrote:


   get "send_activation_notification"
=> :send_activation_notification, :as => "send_activation" do
   resources :users do
               resources :accounts
             end
 end

But it doesn't work for me. Note that send_activation_notification is
not a restful route, so I couldnt model my code exactly as shown in
the rails book. 

That's not a valid route at all. I think you might have it backwards. Check out the results of "rake routes" if you need to see what all your routes look like.

Instead of this:

get "send_activation_notification" => :send_activation_notification, :as => "send_activation" do 
  resources :users do 
    resources :accounts 
   end 
 end 


You might want to do something like this:

resources :users do
  get 'send_activation_notification', :on => :member
  resources :accounts
end

Then you will have a send_activation_notification_user route that you can use.
 

--
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/-/xspDQecxa7gJ.
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

So whenever you migrate down and back up it works? Sounds like the migration is working properly then.


Under what circumstances does it not work?

--
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/-/DsGRPHenk5cJ.
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 observed this a few times, but not always happen, and if I down the
migration and run again, it often works.

My migration is really simple like:

Foo.find_each do |foo|
foo.update_attribute(:bar, "baz")
end

Occasionally, it reports success, but not actually updated the
attribute for the "bar" column of Foo object. It appears to just skip
the whole thing and report success. And as I said, if I down it and
run again, it has always worked.

Anybody else has seen this problem before? I'm using Rails 3.0.10 but
I had this problem with older 3.0.x versions as well.


--
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,

Am 31.10.2011 17:45 schrieb "david snbl" <lists@ruby-forum.com>:
>
> Hello,
>
> See if anyone can help me. I need to design a web application upload to
> a server that works with a database hosted on the PC user logged. This
> means that when a user logs on, the application configures the
> connection to a database hosted on your PC. Is it possible to RoR?

Maybe html5 local storage is what you need??

Kind regards
Wolfgang

--
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 31 October 2011 17:07, Leonardo Mateo <leonardomateo@gmail.com> wrote:
> On Mon, Oct 31, 2011 at 1:45 PM, david snbl <lists@ruby-forum.com> wrote:
>> Hello,
>>
>> See if anyone can help me. I need to design a web application upload to
>> a server that works with a database hosted on the PC user logged. This
>> means that when a user logs on, the application configures the
>> connection to a database hosted on your PC. Is it possible to RoR? Is it
>> possible with Java,. Net, php ...?
>>
> This has nothing to do with the platform you use.
> What on earth has Java/.NET/PHP to do with connecting a web app with a
> database on the client machine?
>
> Have you ever thought about firewalls?, NAT? Port Forwarding?
> Saying this is possible for all those platforms smells like trolling.

I don't think he did say it was possible, he asked if it was.

Colin

--
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

Have you looked into client-side databases with html5?

http://html5doctor.com/introducing-web-sql-databases/

--
Hector Virgen

On Oct 31, 2011 9:46 AM, "david snbl" <lists@ruby-forum.com> wrote:
Hello,

See if anyone can help me. I need to design a web application upload to
a server that works with a database hosted on the PC user logged. This
means that when a user logs on, the application configures the
connection to a database hosted on your PC. Is it possible to RoR? Is it
possible with Java,. Net, php ...?

greetings and thanks in advance.

--
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.

--
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 Mon, Oct 31, 2011 at 1:45 PM, david snbl <lists@ruby-forum.com> wrote:
> Hello,
>
> See if anyone can help me. I need to design a web application upload to
> a server that works with a database hosted on the PC user logged. This
> means that when a user logs on, the application configures the
> connection to a database hosted on your PC. Is it possible to RoR? Is it
> possible with Java,. Net, php ...?
>
This has nothing to do with the platform you use.
What on earth has Java/.NET/PHP to do with connecting a web app with a
database on the client machine?

Have you ever thought about firewalls?, NAT? Port Forwarding?
Saying this is possible for all those platforms smells like trolling.
Please invest your time in more productive stuff.
Research first, then ask in a Forum/mailing list.

--
Leonardo Mateo.
There's no place like ~

--
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 31 October 2011 16:45, david snbl <lists@ruby-forum.com> wrote:
> Hello,
>
> See if anyone can help me. I need to design a web application upload to
> a server that works with a database hosted on the PC user logged. This
> means that when a user logs on, the application configures the
> connection to a database hosted on your PC. Is it possible to RoR? Is it
> possible with Java,. Net, php ...?

No. A good thing too, would you like a website you accidentally visit
accessing a database on your PC? The one with your passwords and bank
detail in perhaps?

Colin

--
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,

See if anyone can help me. I need to design a web application upload to
a server that works with a database hosted on the PC user logged. This
means that when a user logs on, the application configures the
connection to a database hosted on your PC. Is it possible to RoR? Is it
possible with Java,. Net, php ...?

greetings and thanks in advance.

--
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

This was easy resolution:

send_activation_notification(:user_id => @user.id, :account_id =>
@account.id)

That will pass the params in query string

--
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 then I'm not sure where the file is

because in that file mentioned a name of another heroku app, that's why I couldn't upload it
then I changed that and it worked
 
On Mon, Oct 31, 2011 at 7:37 AM, Girly Girl <lists@ruby-forum.com> wrote:
I've followed this tutorial:
http://devcenter.heroku.com/articles/quickstart

file config in .git looks ok:

[core]
 repositoryformatversion = 0
 filemode = true
 bare = false
 logallrefupdates = true
[remote "heroku"]
 url = git@heroku.com:eerie-meadow-9207.git
 fetch = +refs/heads/*:refs/remotes/heroku/*


And you're right, I use command create many times...

--
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.


--
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 Sun, Oct 30, 2011 at 21:09, John Merlino <stoicism1@aol.com> wrote:

> I need more time of my own to investigate a better way to do this.

Maybe we can still help. What were you trying to accomplish with the
code that failed:

portfolio.each {|n, b| n <=> b }

?

Were you trying to sort them? Maybe you could just delegate that to accounts.

-Dave

--
LOOKING FOR WORK! What: Ruby (on/off Rails), Python, other modern languages.
Where: Northern Virginia, Washington DC (near Orange Line), and remote work.
See: davearonson.com (main) * codosaur.us (code) * dare2xl.com (excellence).
Specialization is for insects. (Heinlein) - Have Pun, Will Babble! (Aronson)

--
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 sorry if its not the place but today im pretty desperate. During
the past six month, I have been working on a Starcraft 2 event and we
finally managed to get everyone on board (sponsors, players, casters,
etc.)

The competition will start on january but it happens that our website
which is in beta and has been done in ROR is not 100% functionnal
(simply because the man that did it has not as much time as he would
like).

So today i am looking for people interested in taking part in this
project. I dont think its that much difficult of a task for people
with knowledge in ROR and the interesting fact for developers is this
website should encounter a fair success. (you will see your creation
alive and used by many gamers!)

I took the liberty to post this message here because its pretty hard
to find people with knowledge in ROR. Anyway, thanks for your time and
i would gladly answer your every question if you have some.

Regards,
Boris.

--
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, Oct 11, 2011 at 5:48 PM, Craig White <craig.white@ttiltd.com> wrote:
> I am trying to supplement and ultimately provide a patch for 'foreman' which is an adjunct to puppet.
>
> Essentially, there is a Hosts class which belongs_to Hostgroup and Hostgroup class has a column called 'ancestry' which is actually a Hostgroup (probably what is referred to as STI but I am not sure) and thus within Foreman, nesting Hostgroups is not uncommon.
This is actually the ancestry gem [1] which does most of the heavy lifting.

>
> Thus I could have a Host that is called "ServerA", that belongs to "WebServer" Hostgroup which has an ancestry (Hostgroup) called "Base" and for me to find out all of the puppetclasses that host "ServerA" belongs to, I would have to get a listing of all of the puppetclasses within the chain of Hostgroups to which ServerA belongs.
>
> So this is my code...
>
> @hosts.each do |host|
>  @ancestors = Hostgroup.find(host.hostgroup.ancestry) unless host.hostgroup.ancestry == nil
>   @ancestors.puppetclasses.each do |anc|
>      @my_classes[anc.name] += 1
>  end
> end
>
> And this works for me because I am only nesting 1 level but it's conceivable that other users would nest many more levels and if my patch is to be accepted, I undoubtedly have to account for an infinite level of nesting.
>
> How would I accomplish that?

look for the sort_by_ancestry method

see https://github.com/ohadlevy/foreman/blob/develop/app/models/hostgroup.rb#L73
>
> --
> Craig White ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ craig.white@ttiltd.com
> 1.800.869.6908 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ www.ttiassessments.com
>
> Need help communicating between generations at work to achieve your desired success? Let us help!
>
> --
> 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.
>
>

[1] - https://github.com/stefankroes/ancestry

--
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've followed this tutorial:
http://devcenter.heroku.com/articles/quickstart

file config in .git looks ok:

[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "heroku"]
url = git@heroku.com:eerie-meadow-9207.git
fetch = +refs/heads/*:refs/remotes/heroku/*


And you're right, I use command create many times...

--
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 the ideas ..

some of my records are very flexible with joins,such that I can't be
sure how may fields their are in the form or what field types there
are.

I figured I could guess that I wouldn't have more than 100 fields and
I could generally have an idea how many fields there was so that may
not be a big deal, however when I initially do the

remote_form_for(@rec) do my_form

my_form is a form builder object that I seem to doubt is something I
can have available on an ajax call into a partial to generate a field
after the initial page load. Since when the page first loads, I don't
know for which fields I would need a text_area versus a text_field,
those details are ideally figured out when I would load the field via
ajax. I could try to figure that out ahead of time, but if I have
older records where the format layout has changed, those would error
out.

Possibly the set up work to get this scheme to work is a bit more
than I anticipated, though it may still be worth doing ..

--
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

It's because you may have been doing "heroku create" a lot of times

theres a folder .git and inside theres a file config
be sure that its your application name

I supose you've followed this tutorial http://devcenter.heroku.com/articles/rails3
I had that same problem ... but I can't remember where I found information, just try google and stackoverflow 

On Mon, Oct 31, 2011 at 5:34 AM, Girly Girl <lists@ruby-forum.com> wrote:
Ok, I did it and I finished this tutorial but when I run command

   heroku open

I see comment:

   Application Error

   An error occurred in the application and your page could not be
served. Please try again in a few moments.

   If you are the application owner, check your logs for details.

http://eerie-meadow-9207.heroku.com/

What now ?

--
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.


--
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

Ok, I did it and I finished this tutorial but when I run command

heroku open

I see comment:

Application Error

An error occurred in the application and your page could not be
served. Please try again in a few moments.

If you are the application owner, check your logs for details.

http://eerie-meadow-9207.heroku.com/

What now ?

--
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

Try to install dev lib for zlib:
$ sudo apt-get -y install zlib zlib-devel

On 31 окт, 03:11, "MaT 2." <li...@ruby-forum.com> wrote:
> hello..
>
> i have problem with rubygems version 1.8.7 on ubuntu 10.04 server LTS
> 64bit.this rubygems i also try both installation automatic using apt-get
> package manager and using manually installation but the problem also
> same.
> the problem occur when i try to install any gems installation
> package.i try many solution to solve the problem like remove and install
> back rubygems.i also format computer then install back ruby and rubygems
> but still cannot solve this problem.so i hope any rubygem expert can
> help me solved this kind of problem.below are the following error that
> appear after i execute gem install command.
>
> sudo gem install any-package
>
> ERROR:  While executing gem ... (Zlib::DataError)
> incorrect header check.
>
> and my environment for gems
>
> oneadmin@server:~$ gem env
> RubyGems Environment:
>   - RUBYGEMS VERSION: 1.8.10
>   - RUBY VERSION: 1.8.7 (2010-01-10 patchlevel 249) [x86_64-linux]
>   - INSTALLATION DIRECTORY: /usr/lib/ruby/gems/1.8
>   - RUBY EXECUTABLE: /usr/bin/ruby1.8
>   - EXECUTABLE DIRECTORY: /usr/bin
>   - RUBYGEMS PLATFORMS:
>     - ruby
>     - x86_64-linux
>   - GEM PATHS:
>      - /usr/lib/ruby/gems/1.8
>      - /srv/cloud/one/.gem/ruby/1.8
>   - GEM CONFIGURATION:
>      - :update_sources => true
>      - :verbose => true
>      - :benchmark => false
>      - :backtrace => false
>      - :bulk_threshold => 1000
>   - REMOTE SOURCES:
>      -http://rubygems.org/
>
> --
> Posted viahttp://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 31 October 2011 08:41, Pravin Mishra <diatm.pravin.it.07.27@gmail.com> wrote:
> Hi folk,
>
> I wanted to integrate facebook chat on my ROR site. which gems or
> plugin will help me out.

As a matter of interest, how long did you spend researching with
google before asking that question? You will often get more helpful
responses if you do some research and come along with questions like
"I want to .... I have found these gems that might be appropriate but
am not sure of the best way to proceed because ..."

Colin

--
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 folk,

I wanted to integrate facebook chat on my ROR site. which gems or
plugin will help me out.

any idea,
thanks in advance!!!!!!!!!!!!!!!

++++++++++++++++++++++++
Pravin Mishra

--
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 Sunday, October 30, 2011

[10/17/11 9:46:23:794 GST] 000000b5 SystemOut O strErrorCode is 0
[10/17/11 9:46:26:728 GST] 0000008c SystemOut O strErrorCode is 0
[10/17/11 9:46:26:765 GST] 0000008c SimpleFontExt W
net.sf.jasperreports.engine.fonts.SimpleFontExtensionHelper warning
Error
parsing styled text.
org.xml.sax.SAXParseException: Declared
encoding "UTF-8" does not match actual one "UTF8"; this might not be an
error.
at org.apache.crimson.parser.Parser2.warning(Parser2.java:3148)
at
org.apache.crimson.parser.Parser2.readEncoding(Parser2.java:2946)
at
org.apache.crimson.parser.Parser2.maybeXmlDecl(Parser2.java:1016)
at
org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:486)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
at
org.apache.crimson.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:185)
at
net.sf.jasperreports.engine.fonts.SimpleFontExtensionHelper.loadFontFamilies(SimpleFontExtensionHelper.java:172)
at
net.sf.jasperreports.engine.fonts.SimpleFontExtensionHelper.loadFontFamilies(SimpleFontExtensionHelper.java:142)
at
net.sf.jasperreports.engine.fonts.SimpleFontExtensionsRegistryFactory.createRegistry(SimpleFontExtensionsRegistryFactory.java:63)
at
net.sf.jasperreports.extensions.DefaultExtensionsRegistry.instantiateRegistry(DefaultExtensionsRegistry.java:238)
at
net.sf.jasperreports.extensions.DefaultExtensionsRegistry.loadRegistries(DefaultExtensionsRegistry.java:213)
at
net.sf.jasperreports.extensions.DefaultExtensionsRegistry.loadRegistries(DefaultExtensionsRegistry.java:162)
at
net.sf.jasperreports.extensions.DefaultExtensionsRegistry.getRegistries(DefaultExtensionsRegistry.java:132)
at
net.sf.jasperreports.extensions.DefaultExtensionsRegistry.getExtensions(DefaultExtensionsRegistry.java:104)
at
net.sf.jasperreports.engine.component.ComponentsEnvironment.findComponentBundles(ComponentsEnvironment.java:90)
at
net.sf.jasperreports.engine.component.ComponentsEnvironment.getCachedComponentBundles(ComponentsEnvironment.java:78)
at
net.sf.jasperreports.engine.component.ComponentsEnvironment.getComponentBundles(ComponentsEnvironment.java:66)
at
net.sf.jasperreports.engine.xml.JRReportSaxParserFactory.getSchemaLocations(JRReportSaxParserFactory.java:157)
at
net.sf.jasperreports.engine.xml.JRReportSaxParserFactory.configureParser(JRReportSaxParserFactory.java:138)
at
net.sf.jasperreports.engine.xml.JRReportSaxParserFactory.createParser(JRReportSaxParserFactory.java:103)
at
net.sf.jasperreports.engine.xml.JRXmlDigesterFactory.createParser(JRXmlDigesterFactory.java:1332)
at
net.sf.jasperreports.engine.xml.JRXmlDigesterFactory.createDigester(JRXmlDigesterFactory.java:1307)
at
net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:205)
at
net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:170)
at
net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:154)
at
com.polaris.intellect.core.reports.CoreReportHelper.getReportData(CoreReportHelper.java:158)
at
com.polaris.intellect.core.reports.CoreReportServlet.doPost(CoreReportServlet.java:147)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1657)
at
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1597)
at
com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:131)
at
com.polaris.intellect.web.corebank.common.OrbiAuthenticator.doFilter(OrbiAuthenticator.java:114)
at
com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:188)
at
com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:116)
at
com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:77)
at
com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:908)
at
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:934)
at
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:502)
at
com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:179)
at
com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:91)
at
com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:864)
at
com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1583)
at
com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:186)
at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:452)
at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:511)
at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:305)
at
com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:83)
at
com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
at
com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at
com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
at
com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1604)

[10/17/11 9:46:26:774 GST] 0000008c servlet E
com.ibm.ws.webcontainer.servlet.ServletWrapper service SRVE0068E:
Uncaught
exception created in one of the service methods of the servlet
CoreReportServlet in application COREAPPLICATION. Exception created :
java.lang.AbstractMethodError:
org/w3c/dom/Node.getTextContent()Ljava/lang/String;
at
net.sf.jasperreports.engine.fonts.SimpleFontExtensionHelper.parseFontFamily(SimpleFontExtensionHelper.java:233)
at
net.sf.jasperreports.engine.fonts.SimpleFontExtensionHelper.parseFontFamilies(SimpleFontExtensionHelper.java:204)
at
net.sf.jasperreports.engine.fonts.SimpleFontExtensionHelper.loadFontFamilies(SimpleFontExtensionHelper.java:173)
at
net.sf.jasperreports.engine.fonts.SimpleFontExtensionHelper.loadFontFamilies(SimpleFontExtensionHelper.java:142)
at
net.sf.jasperreports.engine.fonts.SimpleFontExtensionsRegistryFactory.createRegistry(SimpleFontExtensionsRegistryFactory.java:63)
at
net.sf.jasperreports.extensions.DefaultExtensionsRegistry.instantiateRegistry(DefaultExtensionsRegistry.java:238)
at
net.sf.jasperreports.extensions.DefaultExtensionsRegistry.loadRegistries(DefaultExtensionsRegistry.java:213)
at
net.sf.jasperreports.extensions.DefaultExtensionsRegistry.loadRegistries(DefaultExtensionsRegistry.java:162)
at
net.sf.jasperreports.extensions.DefaultExtensionsRegistry.getRegistries(DefaultExtensionsRegistry.java:132)
at
net.sf.jasperreports.extensions.DefaultExtensionsRegistry.getExtensions(DefaultExtensionsRegistry.java:104)
at
net.sf.jasperreports.engine.component.ComponentsEnvironment.findComponentBundles(ComponentsEnvironment.java:90)
at
net.sf.jasperreports.engine.component.ComponentsEnvironment.getCachedComponentBundles(ComponentsEnvironment.java:78)
at
net.sf.jasperreports.engine.component.ComponentsEnvironment.getComponentBundles(ComponentsEnvironment.java:66)
at
net.sf.jasperreports.engine.xml.JRReportSaxParserFactory.getSchemaLocations(JRReportSaxParserFactory.java:157)
at
net.sf.jasperreports.engine.xml.JRReportSaxParserFactory.configureParser(JRReportSaxParserFactory.java:138)
at
net.sf.jasperreports.engine.xml.JRReportSaxParserFactory.createParser(JRReportSaxParserFactory.java:103)
at
net.sf.jasperreports.engine.xml.JRXmlDigesterFactory.createParser(JRXmlDigesterFactory.java:1332)
at
net.sf.jasperreports.engine.xml.JRXmlDigesterFactory.createDigester(JRXmlDigesterFactory.java:1307)
at
net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:205)
at
net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:170)
at
net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:154)
at
com.polaris.intellect.core.reports.CoreReportHelper.getReportData(CoreReportHelper.java:158)
at
com.polaris.intellect.core.reports.CoreReportServlet.doPost(CoreReportServlet.java:147)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1657)
at
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1597)
at
com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:131)
at
com.polaris.intellect.web.corebank.common.OrbiAuthenticator.doFilter(OrbiAuthenticator.java:114)
at
com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:188)
at
com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:116)
at
com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:77)
at
com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:908)
at
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:934)
at
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:502)
at
com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:179)
at
com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:91)
at
com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:864)
at
com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1583)
at
com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:186)
at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:452)
at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:511)
at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:305)
at
com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:83)
at
com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
at
com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at
com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
at
com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1604)

This e-Mail may contain proprietary and confidential information and is
sent for the intended recipient(s) only. If by an addressing or
transmission error this mail has been misdirected to you, you are
requested to delete this mail immediately. You are also hereby notified
that any use, any form of reproduction, dissemination, copying,
disclosure, modification, distribution and/or publication of this e-mail
message, contents or its attachment other than by its intended
recipient/s is strictly prohibited.

Visit us at http://www.polarisFT.com

--
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,
I've a form_remote_tag as a part of my Rails 2.3.11 application. Upon
form submit, ajax works appropriates. I use rjs to update the div with
results.

However the spinner doesn't display.

Here's the code:

<% form_remote_tag :url => {:action => 'getHotels'},:loading =>
"$('spinnerBlock').show()",:complete => "$('spinnerBlock').hide()" do
%>

.....
....
<%= submit_tag 'Search ',:class =>"btn-112x22 mT10" %>
<% end %>
<div id="spinnerBlock" style="display:none;">
<%= image_tag("/imagesA/ajax-loader.gif") %>
</div>

I've also tried following code:

<% form_remote_tag :url => {:action => 'getHotels'},:loading =>
"Element.show('spinner')",:complete => "Element.hide('spinner')" do %>

Any help is much appreciated.

Best,
Navneet

--
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

c:\Fedena\fedena2.1_bundle_package>c:\Ruby187\lib\ruby\gems\1.8\bin
\rake db:crea
te --trace
(in c:/Fedena/fedena2.1_bundle_package)
** Invoke db:create (first_time)
** Invoke db:load_config (first_time)
** Invoke rails_env (first_time)
** Execute rails_env
** Execute db:load_config
** Execute db:create
Couldn't create database for {"port"=>3306, "username"=>"admin",
"adapter"=>"mys
ql", "database"=>"fedena", "host"=>"127.0.0.1", "password"=>"admin"},
charset: u
tf8, collation: utf8_unicode_ci (if you set the charset manually,
make sure you
have a matching collation)

database.yml has
development:
host: 127.0.0.1
adapter: mysql
database: fedena
port: 3306
username: admin
password: admin

test: &test
host: 127.0.0.1
adapter: mysql
database: fedena
port: 3306
username: admin
password: admin

production:
host: 127.0.0.1
adapter: mysql
database: fedena
port: 3306
username: admin
password: admin

cucumber:
<<: *test


Using Windows 7, MySQL 5.0, Ruby 1.8.7 - p302

Someone can help? I am new to Ruby and MySQL

Thanks

--
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

Matt,

Thanks, that did the trick, and I think it unlikely that I would have
found that without some help!

Now, on to what is likely the subject of yet another post: How do I
obtain the effect of ActiveModel::Validations#validates_associated if
applied to non-ActiveRecord classes where I seek to obtain nested
validations when the given class is composed of multiple Ruby objects...

G

--
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

hey all,

I have this:


scope :path => '/activation', :controller => :activation do
post "create" => :create
get "confirmation" => :confirmation, :as => "confirmation"
get "send_activation_notification"
=> :send_activation_notification, :as => "send_activation" do
resources :users do
resources :accounts
end
end
end


After an activation is created:

def create
if acc_a_usr = @activation.perform
extract_contents acc_a_usr
send_activation_notification @user, @account
render :action => "confirmation"
else
render "new"
end
end

confirmation view loads:

= link_to "Resend Email", send_activation_path(@user, @account)


That link gets directed to this method (this method gets called in
multiple places so must account for multiple situations):
def send_activation_notification(user=nil, account=nil)
user = user || params[:user]
account = account || params[:account]
CreateAccount.create_account(user, account).deliver
end


Now I look at the url generated by this helper and it's not right:

send_activation_notification.33?=59

it should be:
send_activation_notification/user/33/account/59 (so that I can access
these ids in the params hash)

I have rea the book "The Rails 3" way and their example of doing what
I want is somehting like this:

resources :actions do
resources :bids
end

In my code I try to mimic something similar:

get "send_activation_notification"
=> :send_activation_notification, :as => "send_activation" do
resources :users do
resources :accounts
end
end

But it doesn't work for me. Note that send_activation_notification is
not a restful route, so I couldnt model my code exactly as shown in
the rails book.

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

hello..

i have problem with rubygems version 1.8.7 on ubuntu 10.04 server LTS
64bit.this rubygems i also try both installation automatic using apt-get
package manager and using manually installation but the problem also
same.
the problem occur when i try to install any gems installation
package.i try many solution to solve the problem like remove and install
back rubygems.i also format computer then install back ruby and rubygems
but still cannot solve this problem.so i hope any rubygem expert can
help me solved this kind of problem.below are the following error that
appear after i execute gem install command.

sudo gem install any-package

ERROR: While executing gem ... (Zlib::DataError)
incorrect header check.

and my environment for gems

oneadmin@server:~$ gem env
RubyGems Environment:
- RUBYGEMS VERSION: 1.8.10
- RUBY VERSION: 1.8.7 (2010-01-10 patchlevel 249) [x86_64-linux]
- INSTALLATION DIRECTORY: /usr/lib/ruby/gems/1.8
- RUBY EXECUTABLE: /usr/bin/ruby1.8
- EXECUTABLE DIRECTORY: /usr/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-linux
- GEM PATHS:
- /usr/lib/ruby/gems/1.8
- /srv/cloud/one/.gem/ruby/1.8
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- http://rubygems.org/

--
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, it makes sense that it failed, because the each
iterator is only intended to iterate over one object at a time. I need
more time of my own to investigate a better way to do this.

On Oct 29, 2:28 pm, Dave Aronson <googlegroups2d...@davearonson.com>
wrote:
> On Sat, Oct 29, 2011 at 00:09, John Merlino <stoici...@aol.com> wrote:
> > ruby-1.9.2-p136 :095 > portfolio.each {|n, b| n <=> b }
> > NoMethodError: undefined method `balance' for nil:NilClass
>
> > It appears that the each iterator does not support passing in two
> > arguments?
>
> Correct.  "each" means "apply this block to each of this collection's
> elements in turn", not "... in parallel".  Otherwise you'd have to
> have the block accept exactly as many args as there are elements.  (Or
> of course accept a collection, in which case you're back to square
> one.)
>
> -Dave
>
> --
> LOOKING FOR WORK! What: Ruby (on/off Rails), Python, other modern languages.
> Where: Northern Virginia, Washington DC (near Orange Line), and remote work.
> See: davearonson.com (main) * codosaur.us (code) * dare2xl.com (excellence).
> Specialization is for insects. (Heinlein) - Have Pun, Will Babble! (Aronson)

--
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 Sun, Oct 30, 2011 at 7:38 PM, David Chelimsky <dchelimsky@gmail.com> wrote:
>
>
> On Oct 30, 3:44 pm, Leonardo Mateo <leonardoma...@gmail.com> wrote:
>> On Sun, Oct 30, 2011 at 5:07 PM, Leonardo Mateo <leonardoma...@gmail.com> wrote:
>> > On Sun, Oct 30, 2011 at 2:59 PM, David Chelimsky <dchelim...@gmail.com> wrote:
>> >> On Oct 30, 12:09 pm, Leonardo Mateo <leonardoma...@gmail.com> wrote:
>> >>> Hi guys,
>> >>> I'm having a problem that's driving me nuts.
>> >>> I have a rails 3.1.1 project in which bundler is ignoring RSpec, no
>> >>> matter what I set rspec or rspec-rails it never gets installed.
>>
>> >> What is the specific behavior you're not seeing? i.e. do you really
>> >> mean it never gets installed (as in you can type "gem list rspec" and
>> >> nothing shows up) or do you mean that you don't see it's rake tasks or
>> >> something else?
>> > It doesn't get installed at all.
>> > I don't know why, since in another project with the same ruby version
>> > (1.9.3-rc1 until today) it is working.
>> > "gem list rspec" does not show any gem listed, and "bundle | grep
>> > rspec" gives nothing.
>>
>> >> As a starting point, I just created a new rvm gemset, installed rails
>> >> 3.1.1, ran "rails new example", copied the Gemfile you list below, and
>> >> ran bundle install. It installed rspec-rails and the other rspec gems
>> >> as expected.
>>
>> >> I then ran "rails generate rspec:install" and got an error on ffi
>> >> having to do with the rb-inotify gem, so I removed that and libnotify
>> >> (gem) and tried again and it worked. I was able to generate a model
>> >> with a spec, and run it using the 'rspec' or 'rake spec' commands.
>> > I tried it too, I removed the gemset, then created a new empty one and
>> > ran "bundle install". I've even installed ruby 1.9.3-p0 today, started
>> > a new gemset from scratch and I had the same behavior.
>>
>> >> Other relevant info: mac os 10.7.2 (lion), rvm 1.9.1, ruby 1.9.2.
>> > I'm using Arch Linux. rvm 1.9.1, ruby 1.9.3-p0
>>
>> > It looks like something is wrong with this specific project, but I
>> > can't tell what it is.
>> > I really don't know either what I can do to fix it. I can't just re
>> > create it, since I already have a lot of work done.
>>
>> It looks like the problem is with the groups.
>> Nothing listed within the "group :test, :development {}" gets
>> installed. Still don't know why.
>
> What's in .bundle/config? Look for "BUNDLE_WITHOUT: development" and/
> or "BUNDLE_WITHOUT: test"
>

Hi David,
Yes, that was actually the problem, I replied Fred's email and somehow
it got posted to a new separated thread, I think because I edited the
subject to mark it as solved.
I'm copying my reply here so this thread is complete.

---------------------
> Did .bundle/config (the file that tracks settings like which groups
> should be ignored) get checked in by accident ?
>
It didn't, but if it were, I would have solved it way earlier.
Thanks a lot for pointing this out!!!

Somehow, the .bundle/config file contained:
---
BUNDLE_WITHOUT: test development

Maybe the production branch did this and as this is git-ignored I
never noticed the change.

So I just removed this file and everything works as expected.

Thanks a lot, guys!

------------------------------


--
Leonardo Mateo.
There's no place like ~

--
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

Fred - did as you recommended. Fooking awesome. Thank you!

--
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 Oct 30, 3:44 pm, Leonardo Mateo <leonardoma...@gmail.com> wrote:
> On Sun, Oct 30, 2011 at 5:07 PM, Leonardo Mateo <leonardoma...@gmail.com> wrote:
> > On Sun, Oct 30, 2011 at 2:59 PM, David Chelimsky <dchelim...@gmail.com> wrote:
> >> On Oct 30, 12:09 pm, Leonardo Mateo <leonardoma...@gmail.com> wrote:
> >>> Hi guys,
> >>> I'm having a problem that's driving me nuts.
> >>> I have a rails 3.1.1 project in which bundler is ignoring RSpec, no
> >>> matter what I set rspec or rspec-rails it never gets installed.
>
> >> What is the specific behavior you're not seeing? i.e. do you really
> >> mean it never gets installed (as in you can type "gem list rspec" and
> >> nothing shows up) or do you mean that you don't see it's rake tasks or
> >> something else?
> > It doesn't get installed at all.
> > I don't know why, since in another project with the same ruby version
> > (1.9.3-rc1 until today) it is working.
> > "gem list rspec" does not show any gem listed, and "bundle | grep
> > rspec" gives nothing.
>
> >> As a starting point, I just created a new rvm gemset, installed rails
> >> 3.1.1, ran "rails new example", copied the Gemfile you list below, and
> >> ran bundle install. It installed rspec-rails and the other rspec gems
> >> as expected.
>
> >> I then ran "rails generate rspec:install" and got an error on ffi
> >> having to do with the rb-inotify gem, so I removed that and libnotify
> >> (gem) and tried again and it worked. I was able to generate a model
> >> with a spec, and run it using the 'rspec' or 'rake spec' commands.
> > I tried it too, I removed the gemset, then created a new empty one and
> > ran "bundle install". I've even installed ruby 1.9.3-p0 today, started
> > a new gemset from scratch and I had the same behavior.
>
> >> Other relevant info: mac os 10.7.2 (lion), rvm 1.9.1, ruby 1.9.2.
> > I'm using Arch Linux. rvm 1.9.1, ruby 1.9.3-p0
>
> > It looks like something is wrong with this specific project, but I
> > can't tell what it is.
> > I really don't know either what I can do to fix it. I can't just re
> > create it, since I already have a lot of work done.
>
> It looks like the problem is with the groups.
> Nothing listed within the "group :test, :development {}" gets
> installed. Still don't know why.

What's in .bundle/config? Look for "BUNDLE_WITHOUT: development" and/
or "BUNDLE_WITHOUT: test"

>
> --
> Leonardo Mateo.
> There's no place like ~

--
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 Sun, Oct 30, 2011 at 7:04 PM, Frederick Cheung
<frederick.cheung@gmail.com> wrote:
> On Oct 30, 8:44 pm, Leonardo Mateo <leonardoma...@gmail.com> wrote:
>> > It looks like something is wrong with this specific project, but I
>> > can't tell what it is.
>> > I really don't know either what I can do to fix it. I can't just re
>> > create it, since I already have a lot of work done.
>>
>> It looks like the problem is with the groups.
>> Nothing listed within the "group :test, :development {}" gets
>> installed. Still don't know why.
>>
>
> Did .bundle/config (the file that tracks settings like which groups
> should be ignored) get checked in by accident ?
>
It didn't, but if it were, I would have solved it way earlier.
Thanks a lot for pointing this out!!!

Somehow, the .bundle/config file contained:
---
BUNDLE_WITHOUT: test development

Maybe the production branch did this and as this is git-ignored I
never noticed the change.

So I just removed this file and everything works as expected.

Thanks a lot, guys!

--
Leonardo Mateo.
There's no place like ~

--
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 Oct 30, 8:44 pm, Leonardo Mateo <leonardoma...@gmail.com> wrote:
> > It looks like something is wrong with this specific project, but I
> > can't tell what it is.
> > I really don't know either what I can do to fix it. I can't just re
> > create it, since I already have a lot of work done.
>
> It looks like the problem is with the groups.
> Nothing listed within the "group :test, :development {}" gets
> installed. Still don't know why.
>

Did .bundle/config (the file that tracks settings like which groups
should be ignored) get checked in by accident ?

Fred

--
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 Oct 30, 9:13 pm, Douglas Birch <li...@ruby-forum.com> wrote:
> Hello, I'm new to Ruby and unix/linux development (although been
> building .net apps for years).
>
> I've almost completed my trek to install Rails ... looks like I have one
> final hurdle.  After installing rails I try the 'rails -v' command and
> it fails.    Any help here would be deeply appreciated.
>
> Here's the output from my bash session:
>
> bash-3.2$ ruby -v
> ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin10.8.0]
> bash-3.2$ which gem
> /Users/doug/.rvm/rubies/ruby-1.9.2-p290/bin/gem
> bash-3.2$ sudo gem update --system
> Password:
> Updating rubygems-update
> Fetching: rubygems-update-1.8.11.gem (100%)
> Successfully installed rubygems-update-1.8.11
> Installing RubyGems 1.8.11
> RubyGems 1.8.11 installed
>
> == 1.8.11 / 2011-10-03
>
> * Bug fix:
>   * Deprecate was moved to Gem::Deprecate to stop polluting the
> top-level
>     namespace.
>
> --------------------------------------------------------------------------- ---
>
> RubyGems installed the following executables:
>   /Users/doug/.rvm/rubies/ruby-1.9.2-p290/bin/gem
>
> RubyGems system software updated
> bash-3.2$ sudo gem install rails --version 3.0.1

Installing gems as root when you're using rvm can do funny things -
you shouldn't need to

Fred

--
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'm very new to rails and am trying to make a basic website where the
user select from a list of colors and gets results for things with those
colors from the database.


<%= form_tag("/fbcs", :method => "get") do %>

<%= check_box_tag(:qgreen) %>
<%= label_tag(:qgreen, "Green") %>

<%= check_box_tag(:qred) %>
<%= label_tag(:red, "Red") %>

<%= check_box_tag(:qblack) %>
<%= label_tag(:black, "Black") %>

<%= check_box_tag(:qorange) %>
<%= label_tag(:orange, "Orange") %>

<%= check_box_tag(:qwhite) %>
<%= label_tag(:white, "White") %>

<%= check_box_tag(:qyellow) %>
<%= label_tag(:yellow, "Yellow") %>

<%= check_box_tag(:qblue) %>
<%= label_tag(:blue, "Blue") %>

<%= submit_tag("Search") %>
<% end %>

is my form.

My database has boolean fields for these.


I have been able to get results with direct names using


@query = Fbc.where(:name => params[:qname])

but do not know how to successfully query my database with the form for
checkbox fields.

Any help or guidance is appreciated,
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.