Here's an example of the code I'm trying to get working... <%= collection_select('book', 'book_type_id', all_book_types, 'id', 'name', :prompt => "Select Book Type...", :style => "width:200px" ) %> I've tried a bunch of different permutations but can't get the style width to even appe...
Sequel is a lightweight database access toolkit for Ruby. * Sequel provides thread safety, connection pooling and a concise DSL for constructing SQL queries and table schemas. * Sequel includes a comprehensive ORM layer for mapping records to Ruby objects and handling associated recor...
On Mar 6, 1:21 pm, Daniel Mendler <dmend...@wurzelteiler.de> wrote: > > vs. > > class Library::Book > end The later will give an error if Library isn't yet defined (personally I with is would just auto-instantiate a new module). Also the lookup of constants resolves differently. For e...
> What cracks can I lose money through? Floating point numbers represent an extremely wide range of values - much wider than their integer counterparts. This is handled through an exponent and mantissa. For this ability, they trade off precision. Think about the case of adding a large...
>> What is the command to see what version of ruby and what version of >> rails i am running? >> >> Thanks in advance! >> >> Kristen > > ruby -v rails -v and if you installed Rails via gem you can use: gem list to show the versions of all the components. -- Michael Wang
On Feb 8, 2006, at 12:01 PM, Yukihiro Matsumoto wrote: > might be a little bit faster, but practically you can consider them > same. > > matz. > I didn't know yield could be considered "defined" or not. Does this mean yield is not a key word? irb(main):014:0> def quby irb(main):015:1>...
Alle mercoledì 28 gennaio 2009, klochner ha scritto: > > than return, but I don't consider this to be one of them. Anyone care > to weigh in? yield and return do completely different things, and you can't use one in place of the other. return tells ruby to stop executing the method an...
Sequel is a lightweight database access toolkit for Ruby. * Sequel provides thread safety, connection pooling and a concise DSL for constructing SQL queries and table schemas. * Sequel includes a comprehensive ORM layer for mapping records to Ruby objects and handling associated recor...
Forum: Italian Ruby user group Forum List | New Topic | Search | Register | User List | Log In Page 1 >> Subject Author Replies Last post hosting rails e risorse David Welton 9 yesterday by David Welton La carenza di programmatori Ruby Giovanni Intini 115 yesterday by Maurizio De magn...
I am writing a script to download warcraft 3 replays for me. It got a few (which work) then had an error: URI::InvalidURIError: bad URI(is not URI?): http://ftp.replays.net/ w3g/060607/060606_mYm]Lucifer(UD)_vs_mTw-LasH(Hum)_TwistedMeadows_RN.w3g The URL works in Safari, so I'm not su...
Hello, does anybody know _why_ 1.9.2 redefines libc symbols in r27214: int ruby_snprintf(char *str, size_t n, char const *fmt, ...); int ruby_vsnprintf(char *str, size_t n, char const *fmt, va_list ap); #undef snprintf #undef vsnprintf #define snprintf ruby_snprintf #define vsnprintf ...
Hello everyone! I'm happy to announce that Watir 3 has been finally released! Its biggest goal is to conform even better with WatirSpec making it more compliant with Watir-WebDriver. Changelog is quite long, but reading it makes your life easier: * Browser#status returns an empty stri...
Hi, I'm confused, I get this error by entering an IPv6 address in the set_real_ip_from directive: nginx: [emerg] "set_real_ip_from" supports IPv4 only in /usr/local/nginx/conf/nginx.conf:65 But according to the changelog, that directive should support IPv6 since nginx 0.8.22: Changes ...
Hi all, I'm using jruby 1.6.7, rawr 1.6.3 and JDK 7 on my Windows 7 pc. I tried the following: C:\tmp\hello>ls main.rb C:\tmp\hello>cat main.rb h = {:a => 1, :b => 2} p h C:\tmp\hello>jruby --1.9 -S rawr install (omit output messages) Edit line 65 in build_configuration.rb: c.target_j...
> Does ruby support storing and loading bytecode !! Short answer: No, it doesn't. (Slightly) longer answer: No, *Ruby* doesn't support storing and loading bytecode, but most Ruby *Implementations* do. IOW: it's not part of the Ruby Language Specification, but most Ruby Implementations...
Rubies: My quest to get the maximum coverage & diagnostics from the leanest possible tests has reached a new level. This is a Rails functional test on an HTML form: user = users(:Moses) get :edit_user, :id => user.id assert_xhtml do form :action => '/users' do fieldset do legend 'Pers...
Bump Sorry for bumping such an old post. I'm having trouble trying to execute something similar. I am using the Apache::AuthenNTLM perl module for NTLM authentication (mod_auth_sspi is windows-only, correct?). Below are three configurations and my results. I appreciate any guidance an...
Douglas, I have been using cron tasks that invoke curl that invokes the routes that perform the periodic tasks for several years. This works on all versions of Rails (of course you have to be running *nix). I gave up on using Rails plugins, etc. because every time I did an update, the...
Subject Author Replies Last post Rails 3.x, Ruby 1.9.x + HAML = Terror? Ramon Cahenzli 2 21 hrs ago by Ramon Cahenzli web interface for Manage translations Andrés Gutiérrez 3 8 days ago by Dan Coutu Translation in translationvariable Philip K. 5 9 days ago by Translate Humans How ca...
On Mar 22, 2006, at 11:21, Tom Mornini wrote: > This causes a 'server side' redirect, and causes > the other action to be executed without the browser > knowing anything about the change. Almost. The action is not executed, only the corresponding template list.rhtml is rendered as if ...
Sequel is a lightweight database access toolkit for Ruby. * Sequel provides thread safety, connection pooling and a concise DSL for constructing SQL queries and table schemas. * Sequel includes a comprehensive ORM layer for mapping records to Ruby objects and handling associated recor...
> Regular expressions for all character work would be a *terribly* slow > way to get things done. If you want to get the nth character, should you > do a match for n-1 characters and a group to grab the nth? Or would it > be better if you could just index into the string and have it d...
I have recently come across several related issues which I have tracked down to nginx and the way it handles DNS. I run nginx as a proxy for several back end services. It works really well, except for 1 thing. My proxy_pass refers to an upstream which points to a DNS entry. That DNS e...
Is there any good reason why Hash#map does not give back a Hash (Ruby 1.8 but same in 1.9 as far as I know)? I often find myself writing these kind of things: newhash = oldhash.inject({}) { |h,(k,v)| h[k] = some_operation(v); h } but that doesn't look pretty at all in my opinion. I wa...
>> How Can I generate uuid ? any references or Ideas could You people >> suggest.I have not even heard about it? >> > > http://en.wikipedia.org/wiki/Uuid#Ruby > In Windows, you can use this code. I'm not sure where I found this from, so I can't tell you who to thank :P require 'Win32A...
I think it is time for gem_prelude to die. It was created to address a symptom, namely, that rubygems was slow on some systems (and proportional to the number of gems you have installed). I don't know of any other reason why it exists. If there are other reasons, I'd like to know. The...
check out if they have a REST-api and access this API using one of the numerous tools available like ActiveResource or HttpParty. If they don't have a REST-API, talk them into adding one, there are also numerous php-Tools out there that will help you do that. You probably do not want ...
On Nov 10, 9:43 pm, Vasyl Smirnov <vasyl.smir...@gmail.com> wrote: > I've tried to freeze a Set instance, and it turned out not working: The following fixes the problem: require 'set' # Patch for Set to make freeze work. class Set def freeze @hash.freeze self end def frozen? @hash.fro...
I am absolutely thrilled to announce that JRuby has been accepted as an organization for Google Summer of Code 2012! http://www.google-melange.com/gsoc/org/google/gsoc2012/jruby JRuby is already an excellent project, but as a student or mentor you can help make it even more amazing! W...
Sometime ago, I posted an message about Nginx performance when paired with Tomcat. We recently did extensive in-house testing of various workload against Nginx with Tomcat vs Apache vs Tomcat. Apache wins hands down. Here's the basic setup 1. Nginx (2 proc/8192 connections) -> http/1....