Hello,
I went to Install Cucumber on my system. Can you please guide me which
version of ruby on rail will support Cucumber v2.3.5?
Thanks
Anand Somani
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" g
oh that's a good solution friend = current_user.friends.find(params
[:id]) i never though of that. search within the users friends for
the requested it... thanks
On Jan 14, 7:12 am, Rick DeNatale wrote:
> On Wed, Jan 13, 2010 at 8:02 AM, Eduard Martini
>
>
>
>
>
> wrote:
> > Don't take the user
Hunter Hillegas wrote:
> I am trying to use the new S3 library (thanks Marcel!) but I am
> getting an Uninitialized Constant message:
>
> >> Service.buckets
> NameError: uninitialized constant Service
> from /opt/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/
> lib/active_support/depe
OK, thank you, Fred.
Best regards,
.Viet Trung.
On Wed, Jan 13, 2010 at 6:50 PM, Frederick Cheung <
frederick.che...@gmail.com> wrote:
> On Jan 13, 8:05 am, viettrung do wrote:
> > Anybody has any idea, please?
> >
>
> This sounds like an IIS problem, and few people on this group will
> know a
On Jan 13, 11:22 pm, Alpha Blue wrote:
> 7. Now I want to call an after_save method that will dir glob the
> location that the (original) blue_lagoon.yml file was uploaded from, and
> begin to mass create and upload the information to the public/themes
> folder.
>
> The problem is I don't know ho
typo:
withCredentials = true
AJ ONeal
--
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-t...@googlegroups.com.
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscr...@goog
On Jan 13, 5:58 am, icke wrote:
> I collect some stuff in my application session. I then need to
> redirect to another domain(not subdomain) run by the same ruby
> application instance (as it needs to be an SSL certificate domain). I
> can rebuild my application session bit by bit but it would b
Hi all,
I've tried very hard to understand file_field and how to determine
local_path. However, I'm running into some issues and I believe it's
probably due to the different behaviors of file_field and local_path
together.
First, here's my issue.
I'm successfully parsing a yaml file using the f
ActiveRecord::Base.class_eval do
def self.validates_is_exact(*attr_names)
options = attr_names.extract_options!
validates_each(*(attr_names << options)) do |record, attr_name,
value|
if record.send( options[:compare_field] ) != value
record.errors.add(attr_name, options[:m
Marnen Laibow-Koser wrote:
>
> But we shouldn't. If you have a good reason, I'd like to hear it.
>
It's a personal preference. Some people put custom validators in libs
and others do it in initializers.
I decided to use initializers more because it makes sense for validators
and also becaus
Alpha Blue wrote:
> Marnen Laibow-Koser wrote:
>>
>> If the two fields serve independent, unique purposes, then they will
>> contain different data some of the time. If they can never, ever
>> contain different data, then they are ipso facto not independent and
>> should be merged.
>>
>> It's
Marnen Laibow-Koser wrote:
>
> If the two fields serve independent, unique purposes, then they will
> contain different data some of the time. If they can never, ever
> contain different data, then they are ipso facto not independent and
> should be merged.
>
> It's that simple.
>
The two f
Gavin Morrice wrote:
> Hey all
>
> I'm experimenting with writing a scraper at the moment and have hit a
> major hump.
>
> Part of the DOM is added after the page has loaded via javascript.
>
> This means when I make an a request the HTML response I receive back
> doesn't accurately represent th
Marnen Laibow-Koser wrote:
> acreadinglist wrote:
>> Hi folks,
>>
>> I'm pretty new to TDD. Is there a standard approach on this: Is it
>> better to write individual tests, or combine them? A specific example
>> - if a model Foo validates the presence of both bar and baz, is it
>> better to have
acreadinglist wrote:
> Hi folks,
>
> I'm pretty new to TDD. Is there a standard approach on this: Is it
> better to write individual tests, or combine them? A specific example
> - if a model Foo validates the presence of both bar and baz, is it
> better to have a test each for bar and for baz, o
January 13, 2010
PostgreSQL Conference East, The PostgreSQL Conference for Decision
Makers, End Users and Developers, is being held at the Radisson Plaza,
Warwick Hotel in Philadelphia on March 25th through 28th.
This is the second call for papers for this conference. You can review
the skeletal
Hi,
I have some context sensitive online help stored in a db table which I
display using Markdown.
This works fine but I was thinking of adding a complete Indexed type
help that could sort of double as a user guide for the app.
Can anyone recommend a plugin or something to prevent reinventing the
Stephen wrote:
> Just curious - did anyone try this out with success/failure? Thx.
Not yet, but I'll have to try. This looks very interesting!
Best,
--
Marnen Laibow-Koser
http://www.marnen.org
mar...@marnen.org
--
Posted via http://www.ruby-forum.com/.
--
You received this message because y
Just curious - did anyone try this out with success/failure? Thx.
On Jan 10, 10:59 pm, Stephen wrote:
> Hi all,
>
> Just want to announce my auto_sprite gem which some of you may find handy..
> It makes using CSS sprites painless. As a bonus - should you remove it some
> day, it doesn't break
Curtis Cooley wrote:
> On Wed, Jan 13, 2010 at 1:53 PM, Artem Bu wrote:
>> and all looks great, but when i do like this
>>
>> Of course, page and item with id=1 are exist.
>>
>> What i did wrong?
>
> Not sure if it'll help, but I've found find_by_id more developer
> friendly than find. You could
On Wed, Jan 13, 2010 at 8:02 AM, Eduard Martini
wrote:
> Don't take the user id from the url.
>
> For example, don't do this:
>
> url:
> /show_friends/5
> code:
> Users.find(5).friends
>
> But do this:
>
> url:
> /show_friends
> code:
> current_user.friends
>
> where current_user is the currently
On Wed, Jan 13, 2010 at 1:53 PM, Artem Bu wrote:
> Hi all! I have a strange problem when i try to use polymorphic
> associations in my app. I have a simple relations between my models:
>
> class Item < ActiveRecord::Base
> belongs_to :content, :polymorphic => true, :dependent => :destroy
>
> clas
Hi all! I have a strange problem when i try to use polymorphic
associations in my app. I have a simple relations between my models:
class Item < ActiveRecord::Base
belongs_to :content, :polymorphic => true, :dependent => :destroy
class Page < ActiveRecord::Base
has_one :item, :as => :content,
Alpha Blue wrote:
> Marnen Laibow-Koser wrote:
>> Bad example. The only time you should ever need to do this is in the
>> case already covered by validates_confirmation_of. If you have two
>> fields in the DB that should always be identical, then remove one of
>> them.
>>
>
> I'm sorry, but
You should lookup the differences between backend and frontend server
components. Much of what you are describing will be handled throughout
different areas of your server.
Example:
Your server runs on a 1gb mem slice and you decide to go down to say a
256mb mem slice. The next day your serv
Matt Jones wrote:
> On Jan 12, 11:40 am, Boris Bob wrote:
>>
>> How to fix that kind of problem ? i use mac and my "gem environment" is
>>
>
> Can you post the output of 'gem list --local'? I'm guessing that
> you're missing one of the dependencies somehow.
>
> --Matt Jones
gem list --local
**
Marnen Laibow-Koser wrote:
> Bad example. The only time you should ever need to do this is in the
> case already covered by validates_confirmation_of. If you have two
> fields in the DB that should always be identical, then remove one of
> them.
>
I'm sorry, but I have to disagree. In the c
Ralph Shnelvar wrote:
> Assume that a fatal error has occurred during (a) initialization; or (b)
> at "run time".
>
> (a) Let's say a critical file or exe has gone missing during
> initialization. What is the best way to report this fact?
>
> (b) Let's say that a disk drive has filled up ... or
Hi folks,
I'm pretty new to TDD. Is there a standard approach on this: Is it
better to write individual tests, or combine them? A specific example
- if a model Foo validates the presence of both bar and baz, is it
better to have a test each for bar and for baz, or to combine the
validations into
Rob Biedenharn wrote:
> On Jan 12, 2010, at 4:51 PM, Danimal wrote:
>
>> # Email address can't be blank
>>
>> I'd rather be able to specify (cleanly and easily) on a model some
>> kind of order of importance and then only show the first validation
>> failure for that field.
>>
>> Thoughts? Advice?
Alpha Blue wrote:
> I have to agree with both Marnen and Rob here.
>
> First, validations are not meant to make a user happy. It's to ensure
> that proper validation is met before data is inserted into your
> database.
Not really. Validations are meant to make users happy, sort of. The
da
Is there a way (or a best way) to share a test across models?
For example, if I have two models that validate presence of :name, can
I write just one shared unit test to check it (and point the models to
the shared test)?
Thanks!
Andrew
--
You received this message because you are subscribed to
One of Mongrel's main differences is how efficiently and effectively it
scales with multiple apps/clusters running at the same time. Try
running 6 different applications using mongrel on 6 different ports and
allow them all to tie into one another. Then, try the same thing with
webrick and yo
I have to agree with both Marnen and Rob here.
First, validations are not meant to make a user happy. It's to ensure
that proper validation is met before data is inserted into your
database. Therefore, the more accurate you validate your forms, the
least likely you are to have some type of da
Matt Jones wrote:
> Essentially, anything that isn't blank and isn't "true-y" (see the
> list in the source) gets mapped to false.
>
> About the only way I can think of to avoid this is to override the
> accessors for those variables and map everything that isn't true to
> nil.
>
> --Matt Jones
There's also Unicorn.
--
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-t...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com.
F
On Jan 13, 10:24 am, "[AFH]" wrote:
> Accidentally direct messaged, apologies.
>
> WEBrick has basically been deprecated, even for development purposes.
> Mongrel is faster and more reliable and now the de facto standard in
> the community.
>
> Alan
>
> http://www.twitter.com/anachronistic
WEBric
Assume that a fatal error has occurred during (a) initialization; or (b)
at "run time".
(a) Let's say a critical file or exe has gone missing during
initialization. What is the best way to report this fact?
(b) Let's say that a disk drive has filled up ... or there is a similar
problem that has
On Jan 13, 12:24 pm, Friedrich
wrote:
> On 12 Jan., 09:46, Conrad Taylor wrote:
>
>
>
> > On Mon, Jan 11, 2010 at 11:42 PM, Friedrich <
>
> > friedrichdomini...@googlemail.com> wrote:
>
> > > On 12 Jan., 03:55, Marnen Laibow-Koser wrote:
> > > > Friedrich wrote:
> > > > > Can anyone give me an o
On Jan 13, 7:04 pm, Yuri wrote:
> I'm trying to pass an object as a parameter on a link_to_remote. What
> I do is pretty simple:
> link_to_remote 'Insert subquestion', :url => {:action =>
> 'add_subquestion', :question => @question}, :update => '', :method
> => :get
>
> But, obviously, what I ge
I'm trying to pass an object as a parameter on a link_to_remote. What
I do is pretty simple:
link_to_remote 'Insert subquestion', :url => {:action =>
'add_subquestion', :question => @question}, :update => '', :method
=> :get
But, obviously, what I get is a string which has the address of the
objec
On Jan 12, 2010, at 4:51 PM, Danimal wrote:
Hello!
Has anyone come across a nice, elegant way to handle multiple
validation failures on a single field? For example... in the typical
login, you might have an email field that has three validations: not
blank, less than a max length and matches a
On Jan 13, 2010, at 9:59 AM, doug wrote:
>
> Rails conveniently packages post data in the params hash. The order
> in which data is stored in a hash is typically not the order in which
> the data was entered. Generally this is not a problem; however, there
> are some unusual fact patterns in whi
Rails conveniently packages post data in the params hash. The order
in which data is stored in a hash is typically not the order in which
the data was entered. Generally this is not a problem; however, there
are some unusual fact patterns in which it is. One of those fact
patterns involves PayPa
On 12 Jan., 09:46, Conrad Taylor wrote:
> On Mon, Jan 11, 2010 at 11:42 PM, Friedrich <
>
> friedrichdomini...@googlemail.com> wrote:
>
> > On 12 Jan., 03:55, Marnen Laibow-Koser wrote:
> > > Friedrich wrote:
> > > > Can anyone give me an oversight about rails applicatoin in the
> > > > followi
On Jan 12, 7:19 pm, Alpha Blue wrote:
> If it contains true it does not fail and stores the value as true.
> If it contains false it does not fail and stores the value as false.
> If it contains nothing it fails and says that it must contain a boolean
> value.
>
> All good right?
>
> If it conta
On Jan 12, 11:40 am, Boris Bob wrote:
> Hi
> Strange thing happens when i run rails project it makes project but when
> i run script/generate or script/server it writes
>
> Missing the Rails 2.3.5 gem. Please `gem install -v=2.3.5 rails`, update
> your RAILS_GEM_VERSION setting in config/environ
On Jan 12, 2:39 pm, tom wrote:
> hi
>
> is there a plugin or something else which could assist in finding
> duplicates in a model / table?
>
> even with validations, users tend to enter data twice / wrong (for
> whatever reasons...)..so i was wondering if there is something out
> there to find
sushi 2k wrote:
[...]
> Yes, I know. But with an Ajax Gui, the usability would be better for the
> users. And only the parts that are opened would be loaded.
Unless you have a very big tree (i.e. more than a couple hundred items),
this will probably degrade performance. Better to fetch all the
awesome...
i am using the restful_authentication plugin
modified the mail.rb page to:
ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.raise_delivery_errors = true
ActionMailer::Base.default_content_type = "text/html"
ActionMailer::Base.smtp_settings = {
:address => "smtp.gmail.c
Accidentally direct messaged, apologies.
WEBrick has basically been deprecated, even for development purposes.
Mongrel is faster and more reliable and now the de facto standard in
the community.
Alan
http://www.twitter.com/anachronistic
--
You received this message because you are subscribed to
On Tue, Jan 12, 2010 at 1:03 PM, Philip Hallstrom wrote:
>
> On Jan 12, 2010, at 9:46 AM, Steve Castaneda wrote:
>
>> Owners has_one :widget and Widgets belongs_to :owner.
>
> @owners = Owner.all(:conditions => 'widget_id IS NULL')
>
> Would do it. Assuming that it's correct to say that if widget
Keith Salisbury wrote:
> I have a controller test here:
>
> http://gist.github.com/275616
Why? Cucumber features are generally nicer to work with than controller
tests.
> which works fine when account is an
> independent model, however I want:
>
> an account to be a property of user, ( and cr
Ralph Shnelvar wrote:
> Newbie here.
>
> This is not a question but a report on a work-around for a problem I
> detected with the gem validates_captcha.
When you are writing things like this, there is no need to begin your
posts with "Newbie here."
Actually, that's probably true in general. If
hey all
I'm using rails 2.2.2 in a particular app, and upgrading isn't an option
right now (in case this is a version-specific problem).
When you do flash[:notice] = "blah", that message persists over the next
redirect, ie into the next action. When you do flash.now[:notice] =
"blah", it doesn't
On Jan 13, 2:51 pm, Rails ROR wrote:
> Hi Everybody,
>
> I would like to know the exact difference between Mongrel and Webrick.
>
> I have gone through few sites about Mongrel and Webrick differences. I came
> to know that Mongrel is fast, efficient than Webrick.
>
> Are there any other difference
Thanks guys, was having some issues creating headings based on an
array of column names from the DB acquired using User.column_name
where "User" is the table. Turns out my problem was unrelated in the
link_to codeshould have went to bed sooner.
On Jan 13, 1:22 am, siddick wrote:
> joshmc...@g
jhaagmans wrote:
Hi Sven,
[...]
There's one specific domain we'd like to instantly mail to. Will it
save DNS-lookup time if I'd add the mailserver at the other end to our
hosts file? If so, should we use the MX-record (mail.domain.com) or
just the domain part of the e-mail address (domain.com
I am using Windows Vista and installed Ruby 1.8.6.
gem install rails --include-dependencies
gem install mysql --include-dpendencies
MySQL gem installs, but a whole bunch of message pop up such as -
. . .
No definition for time_get_second
No definition for time_get_neg
No definition for time_g
Hi Everybody,
I would like to know the exact difference between Mongrel and Webrick.
I have gone through few sites about Mongrel and Webrick differences. I came
to know that Mongrel is fast, efficient than Webrick.
Are there any other differences other than this? Which one is better?
Are there
Guille San wrote:
> Colin Law wrote:
>> 2010/1/12 Guille San :
>>> I wanna to create a web page with instant rails.
>>> In my web page I wanna to show some pictures.
>>> What is the code I need to show it
>>
>> If you have not already done so then have a look at the Getting
>> Started rails guide
On Jan 13, 2:06 pm, John Merlino wrote:
> The above ended up working. However, I thought that the inner join I
> specified would make the attributes of student_state available in the
> xml output of the students controller (when going to the
> urlhttp://localhost:3000/students.xml). But it wasn
Don't take the user id from the url.
For example, don't do this:
url:
/show_friends/5
code:
Users.find(5).friends
But do this:
url:
/show_friends
code:
current_user.friends
where current_user is the currently auth user. You know who is logged
in, don't need to pass his id around.
On Jan 13, 7
2010/1/13 Guille San :
> Colin Law wrote:
>> 2010/1/12 Guille San :
>>> I wanna to create a web page with instant rails.
>>> In my web page I wanna to show some pictures.
>>> What is the code I need to show it
>>
>> If you have not already done so then have a look at the Getting
>> Started rails gu
hi,
i woould like to have popup windows for certain views, eg the NEW
view, so that as soon the create is done, i can close that window and
reload the main "list" in the back...
so my question is: what are the easiest/best libs for popup-html-windows.
or is it better do to it by hand?
thx
--
There is a much easier workaround.
You may just set opacity to zero. Here's how I did it:
require "gruff"
class Chart < Gruff::StackedBar
def opacity
@base_image.opacity
end
def opacity=( value )
@base_image.opacity = value
end
def draw
super
self.opacity = 0
end
end
Frederick Cheung wrote:
> On 12 Jan 2010, at 18:46, John Merlino wrote:
>>> => ?, :state}
>>> end
>
> Not quite - since you've got a parameter you have to use the lambda form
> (when I said you had to use the hash form or the lambda form I was
> talking in generalities), so you need
>
> named_s
Colin Law wrote:
> 2010/1/12 Guille San :
>> I wanna to create a web page with instant rails.
>> In my web page I wanna to show some pictures.
>> What is the code I need to show it
>
> If you have not already done so then have a look at the Getting
> Started rails guide (google Rails Guides). The
I'd like to make a div that updates itself. That div will contain a
timer. If there is an hour left, I'd like to refresh it every 10
minutes, but if the time has only one minute left, I'd like to have it
call the server every second.
If the periodically_call_remote is inside the div, will it be
Hi Sven,
Thanks! Benchmarking the Mailer.deliver commands returns about 45 ms
of elapsed time when sending through SMTP and 250 ms when sending
through sendmail, so that at least reduces the time it takes to get
the e-mail to Postfix. Now I'll just have to look at optimizing
Postfix.
There's one
I collect some stuff in my application session. I then need to
redirect to another domain(not subdomain) run by the same ruby
application instance (as it needs to be an SSL certificate domain). I
can rebuild my application session bit by bit but it would be DRYer if
I pass the session_id into the
jhaagmans wrote:
We'd like to see how long it takes for a Mailer object to leave our
server after the deliver command is sent. How could we do this? We'd
like to get an accurate value (e.g. in milliseconds).
Wrap the call to your deliver_xxx method in Benchmark.realtime. This
will of course only
On Tue, Jan 12, 2010 at 11:01 AM, c_allison wrote:
> Hi
>
> I built a web app using Ruby 1.8.6. Then used Ruby Enterprise Edition
> and Passenger (and Apache) for production. Everything was good.
>
> Then on a whim I decided to compile ruby 1.9.1 from source and point
> my Passenger config to the
We'd like to see how long it takes for a Mailer object to leave our
server after the deliver command is sent. How could we do this? We'd
like to get an accurate value (e.g. in milliseconds).
We were using Sendmail to send e-mail from our app, but Sendmail had
the problem that it took too long to s
On Wed, Jan 13, 2010 at 3:23 AM, rprateek wrote:
> i am a beginner to rails and this is my first project.
>
> Just tried something with jquery. It works fine in my development
> machine but jquery is not executed in my production page
>
> my site is http://www.khaire.com/galleries
>
> where photo
Yes, perhaps I do! I found this blog post about some techniques do add
behavior to sub classes,
http://robots.thoughtbot.com/post/159808315/a-compromise.
I am going to try this right away, thanks for your answer!
On 13 Jan, 12:32, Colin Law wrote:
> 2010/1/13 fredd :
>
> > Hi, I need some advise
On 13 jan, 12:23, rprateek wrote:
> i am a beginner to rails and this is my first project.
>
> Just tried something with jquery. It works fine in my development
> machine but jquery is not executed in my production page
>
> my site ishttp://www.khaire.com/galleries
>
> where photos were supposed t
On Jan 12, 8:47 pm, CoolAJ86 wrote:
>
> Firefox and Safari / Chrome pre-flight CORS / XHR2 requests with
> OPTIONS before GET/POST/PUT/DELETE to see if the server allows CORS
> before attempting the request.
> Internet Explorer, I believe, just uses the HTTP vars from the
> original request.
Ma
Colin Law wrote:
> 2010/1/12 Boris Bob :
>> Hi
>> Strange thing happens when i run rails project it makes project but when
>> i run script/generate or script/server it writes
>>
>> Missing the Rails 2.3.5 gem. Please `gem install -v=2.3.5 rails`, update
>> your RAILS_GEM_VERSION setting in config/e
On Jan 13, 8:05 am, viettrung do wrote:
> Anybody has any idea, please?
>
This sounds like an IIS problem, and few people on this group will
know about that sort of stuff. Have you tried asking on an IIS related
group
Fred
> Best regards,
>
> .Viet Trung.
>
> On Jan 10, 11:46 am, viettrung do
i am a beginner to rails and this is my first project.
Just tried something with jquery. It works fine in my development
machine but jquery is not executed in my production page
my site is http://www.khaire.com/galleries
where photos were supposed to be controlled by jquery
Can someone please t
2010/1/13 fredd :
> Hi, I need some advises on rails best practices when it comes to
> abstract/concrete models/classes in Rails. This is what I want to
> accomplish: A abstract type of page that holds base functionality like
> name, memberships, templates and other possible generic stuff. Then I
>
On 12 Jan 2010, at 18:46, John Merlino wrote:
>>
>> Well, I changed it around. I think this is what you were talking about:
>>
>> class StudentState < ActiveRecord::Base
>> has_many :students
>> end
>>
>> class Student < ActiveRecord::Base
>> belongs_to :student_state
>> named_scope :status, :j
On Jan 12, 11:25 pm, nerd wrote:
> Hello,
> I'm running an environment with connections to different types of
> databases (using AR) in addition to the default mysql(5) connection.
> The MSSQL-Connections are working fine. Just one "old" 3rd party
> database makes problems: an old mysql(4) datab
joshmc...@gmail.com wrote:
Really basic question.
How can I convert "this" to 'this'
convert from a double quotes string to a single quotes string.
Try this one :-
str = '"hai"'
puts str
puts str.sub(/^"(.*)"$/, '\'\1\'')
--
You received this message because you are subscrib
Hello,
I'm running an environment with connections to different types of
databases (using AR) in addition to the default mysql(5) connection.
The MSSQL-Connections are working fine. Just one "old" 3rd party
database makes problems: an old mysql(4) database. The problem is,
that there are colums of
I have a controller test here:
http://gist.github.com/275616, which works fine when account is an
independent model, however I want:
an account to be a property of user, ( and created and associated when
a user is)
when the user goes to /account/edit it should on edit the account of
the logged in
Client: Leading finance firm in NYC
This is a full time permanent position
Salary: 100-130K+
The ideal candidate will join a small agile team in the development of
a new web product that is targeted for Beta launch within an
aggressive time-frame. We are looking for an experienced hands-on Ruby
on
How can I get ruby to look for gems in the local repository first,
then in the site repository?
The following bash env vars are set and exported:
GEM_HOME=/home5/allcarsm/ruby/gems
GEM_PATH=/home5/allcarsm/ruby/gems:/usr/lib/ruby/gems/1.8:/usr/lib64/
ruby/gems/1.8
Local gems are in /home/allcar
Hi
I built a web app using Ruby 1.8.6. Then used Ruby Enterprise Edition
and Passenger (and Apache) for production. Everything was good.
Then on a whim I decided to compile ruby 1.9.1 from source and point
my Passenger config to the new ruby binaries.
I fixed a couple things in the app, then I w
Hi, I need some advises on rails best practices when it comes to
abstract/concrete models/classes in Rails. This is what I want to
accomplish: A abstract type of page that holds base functionality like
name, memberships, templates and other possible generic stuff. Then I
want to have subclasses lik
I could be misreading, but I thought it was a simple question of how to
change double quotes to single quotes.
try
var = '"this"'
var.gsub!('"',"'")
Cheers
Simon
On Wed, 13 Jan 2010 16:14:47 +0800, srinivasan sakthivel
wrote:
u can try this
@re = "this".gsub("this","'this'")
puts @re
T
u can try this
@re = "this".gsub("this","'this'")
puts @re
Thanks
seenu
On Wed, Jan 13, 2010 at 12:47 PM, Conrad Taylor wrote:
> On Tue, Jan 12, 2010 at 11:11 PM, joshmc...@gmail.com > wrote:
>
>> Really basic question.
>>
>> How can I convert "this" to 'this'
>>
>> convert from a double qu
Hi,
Can someone help me with this, why does it not work when the association
is already set, shouldn't it be overridden?
require 'rubygems'
require 'activerecord'
ActiveRecord::Base.establish_connection(:adapter => 'sqlite3', :database
=> ':memory:')
class Rider < ActiveRecord::Base
connectio
Anybody has any idea, please?
Best regards,
.Viet Trung.
On Jan 10, 11:46 am, viettrung do wrote:
> Hi all,
>
> I deployed a Rails application on a Windows Server 2003 machine as
> follows:
>
> + I created two instances of Mongrel at ports 4001, 4002 to serve the
> application
>
> + I set up
95 matches
Mail list logo