8:
You'd have been fine with 2.3.5 if you'd have rack 1.0.1 installed.
--
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
rub
Hi,
I just installed Rails 2.3.5 over Ruby 1.8.6
When I try to bring up Webrick now, I get:
K:/_Utilities/ruby186-26_rc2/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:
827:in `report_activate_error': RubyGem version error: rack(1.0.0 not
~> 1.0.1)
Gem::LoadError)
When I revert to Rails 1.2.3 over Rub
@Marnen: first, apologies on the misspelling -- no slight intended.
After thrashing around on this forum and working through AWDwR, I can
pose my question more succinctly. But bear with me if I still get it
wrong...
* You use migrations to define / extend / modify the tables in your
db.
* Activ
> I had some trouble with rack versions when transitioning to 2.3.5.
> Specifically, I found I could not use Rack 1.1.0 in my setup. I ended
> up installing rack 1.0.1 and freezing it in the app - then all my
> issues resolved.
>
> --
> Kurt Werle
> I am looking for a new Rails job:
> http://www
On Feb 19, 9:36 am, Sonny Chee wrote:
> >> I've tried updating all of gems to no avail. Any advice would be
> >> appreciated.
>
> Incidentally, I'm already at rack 1.1.0
>
> Dave Lynch wrote:
> > You need to update to rack 1.0.1
I had some trouble with rack versions when transitioning to 2.3.5.
Works a treat Xavier. Thanks a lot!
On Feb 19, 6:09 pm, Xavier Noria wrote:
> The dot is a separator. There's a workaround though, add
>
> :requirements => {:email => /.*/}
>
> to the route definition.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Ra
On Fri, Feb 19, 2010 at 2:27 PM, Kristian wrote:
> In the root of a rails 3 app:
>
> $ rails
> env: ruby1.9: No such file or directory
> $ script/rails
> env: ruby1.9: No such file or directory
> $ script/rails generate
> env: ruby1.9: No such file or directory
> $ ruby -v
> ruby 1.9.1p378 (2010-
On Fri, Feb 19, 2010 at 2:37 PM, Conrad Taylor wrote:
> On Fri, Feb 19, 2010 at 12:42 PM, straightfl...@gmail.com <
> straightfl...@gmail.com> wrote:
>
>> I am now getting an error
>> irb(main):002:0> u = UserSession.find(1)
>> NameError: uninitialized constant AuthLogic
>>
>>
> Try using the fol
On Fri, Feb 19, 2010 at 12:42 PM, straightfl...@gmail.com <
straightfl...@gmail.com> wrote:
> I am now getting an error
> irb(main):002:0> u = UserSession.find(1)
> NameError: uninitialized constant AuthLogic
>
>
Try using the following line within your Gemfile:
gem "authlogic"
If that doesn't w
In the root of a rails 3 app:
$ rails
env: ruby1.9: No such file or directory
$ script/rails
env: ruby1.9: No such file or directory
$ script/rails generate
env: ruby1.9: No such file or directory
$ ruby -v
ruby 1.9.1p378 (2010-01-10 revision 26273) [i386-darwin10.2.0]
$ mate script/rails
#!/usr
On 19 February 2010 19:56, Hemant Bhargava wrote:
>> That should be ok then, you said something about using
>> set_fixture_class, what have you specified, where, and why?
>> What is the name of the test class?
>>
>> Colin
>
> No colin .. That is not ok.. thats why i put my question here.. Even i
>
I am using autotest with RSpec (autospec) and for some reason it
doesn't monitor files under the integration folder. Does anyone know
how to config autotest to monitor additional paths? I tried playing
with add_mapping in my .autotest but was not able to get it to work.
Thanks!
P.S. I know that
Multiple json inculded associations without parameters
model_name.to_json(
:include => [
:assoc_1,
:assoc_2
])
Works
Multiple json inculded associations with parameters
model_name.to_json(
:include => [
{:assoc_1 => params},
{:assoc_2 => params}
])
Fails
Multiple jso
Hello all,
I just did a first time ruby enterprise edition, installed some gems,
and now I'm trying to do a ' sudo ./rake gems:install' and getting a:
rake aborted!
No Rakefile found
error. Firstly, what directory should I be doing this from?
--
View this message
I am now getting an error
irb(main):002:0> u = UserSession.find(1)
NameError: uninitialized constant AuthLogic
$ grep authlogic Gemfile
gem "authlogic", :git => "git://github.com/binarylogic/authlogic.git"
$ bundle check
The Gemfile's dependencies are satisfied
For some reason bundle pack doesnt
I have done something to my application controller so that instead of
the redirected page itself am now seeing this as a response:
You are being http://www.example.com/
welcome">redirected.
I do not know why this is happening or what I did to trigger this
behaviour. The API does not give me an
> That should be ok then, you said something about using
> set_fixture_class, what have you specified, where, and why?
> What is the name of the test class?
>
> Colin
No colin .. That is not ok.. thats why i put my question here.. Even i
am thinking that i am doing all right.. But still .. I hav
On Fri, 2010-02-19 at 12:45 -0700, Craig White wrote:
> On Thu, 2010-02-18 at 12:12 -0800, Kevin Cure wrote:
> > I hope all is going well for everyone as we move deeper into 2010. I
> > am looking for a referral for a Ruby/ROR developer for a multinational
> > startup in Beijing. Can be relocated
On Thu, 2010-02-18 at 12:12 -0800, Kevin Cure wrote:
> I hope all is going well for everyone as we move deeper into 2010. I
> am looking for a referral for a Ruby/ROR developer for a multinational
> startup in Beijing. Can be relocated from anywhere in the world. I
> am paying a $3000 USD referr
> You have to install development tools firs
Hello again.
It is trying to install from source instead of binary, which requires a
compiler.
Try setting the platform to mswin32 and it will hopefully install the
binary version.
gem install ruby-postgres --platform=mswin32
--
Posted via http://ww
ruby-postgres is deprecated. Use "pg" instead.
--
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-t...@googlegroups.com.
To unsubscribe from this gro
Found the bug and solution here:
https://rails.lighthouseapp.com/projects/8994/tickets/3865-invalid-gemspec-format-in-and-already-initialized-constant-warnings-with-ruby-192dev
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to t
I am trying to show a list of events and their locations in a map in
my index action. I use will pagination for paginating through the
events. The first call to the page is a regular "html" format and the
subsequents calls are ajax calls. I initialize the map and markergroup
that contains the event
While doing a tutorial on tutorialpoint, I had the same problem! I made
the change, but I get another error :
NoMethodError in Book#new
Showing app/views/book/new.rhtml where line #4 raised:
undefined method `title' for #
Extracted source (around line #4):
1: Add new book
2: <%= form_tag :acti
kristian-mandrups-macbook-pro:edgier kristianconsult$ rake db:migrate
(in /Users/kristianconsult/my_rails/rails3_apps/edgier)
WARNING: #' for nil:NilClass>
# -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
s.name = %q{abstract}
...
WARNING: Invalid .gemspec format in '/usr/local/Cellar/r
On Feb 19, 5:48 pm, Pito Salas wrote:
> Philip Hallstrom wrote:
> >>> Follow the rabbit down the trail...
> >> different places?
> > Ah. Gotcha.
>
> > The default rails tasks come out of vendor/rails/railties/lib/tasks.
> > You're own tasks get picked up out of lib/tasks.
> > Plugin tasks come
Aldric Giacomoni wrote:
> Guille San wrote:
>> Hi everyone
>>
>> I´m doing a web page, and I wanna to show a picture but this picture
>> change every 10 minutes. I wanna to show it and refresh t automatically,
>> but I want to refresh only the image. How can I do that
>>
>> Thanks a lot
>
> Soun
My system is Windows Server 2008 SP2
Ruby and gem versions:
--
C:\Windows\system32>ruby -v
ruby 1.9.1p378 (2010-01-10 revision 26273) [i386-mingw32]
C:\Windows\system32>gem -v
1.3.5
When I try to install the ruby-postgres gem, here is what it says:
---
Guille San wrote:
> Hi everyone
>
> I´m doing a web page, and I wanna to show a picture but this picture
> change every 10 minutes. I wanna to show it and refresh t automatically,
> but I want to refresh only the image. How can I do that
>
> Thanks a lot
Sounds like you need to create a DIV with
The dot is a separator. There's a workaround though, add
:requirements => {:email => /.*/}
to the route definition.
--
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.c
Xavier Noria wrote:
> On Fri, Feb 19, 2010 at 10:41 AM, Krum Bakalsky
> wrote:
>
>> executing Ruby code ?
> In that analogy you can think Mongrel is something similar to Tomcat.
> It is a web server, but one that can also serve Rails applications.
Another important piece of this puzzle when rel
Hi everyone
I´m doing a web page, and I wanna to show a picture but this picture
change every 10 minutes. I wanna to show it and refresh t automatically,
but I want to refresh only the image. How can I do that
Thanks a lot
--
Posted via http://www.ruby-forum.com/.
--
You received this message
Philip Hallstrom wrote:
>>> Follow the rabbit down the trail...
>> different places?
> Ah. Gotcha.
>
> The default rails tasks come out of vendor/rails/railties/lib/tasks.
> You're own tasks get picked up out of lib/tasks.
> Plugin tasks come out of vendor/plugins//tasks.
>
> -philip
Philip
>> I've tried updating all of gems to no avail. Any advice would be
>> appreciated.
Incidentally, I'm already at rack 1.1.0
Dave Lynch wrote:
> You need to update to rack 1.0.1
>
> gem update rack
>
> to see what version you have
> gem list -l
--
Posted via http://www.ruby-forum.com/.
--
You
Hi,
I was working on a plugin to enhance ActiveRecord's models so that it's
easy to handle decimal numbers and store them as integers. I was
dynamically creating instance methods to output the formatted attribute
(145 becomes 14.5)
Now there is a problem with Rails forms (for example), as they ac
I have not yet done detailed testing; but, at least superficially,
your suggestion seems to have resolved the issue. Thanks very much
for the input.
... doug
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group,
What's the future of DRb in Rails 3.0 world? Is there something else coming
along that will be preferable (e.g. ActiveWorker)? Starling/Workling?
SimpleWorker? Redis/Resque?
Thanks!
Marc
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" gro
The scaffold generator takes a model name, followed by an optional
space-delimited list of field name:type specs. So you might say:
script/generate scaffold Book name:string description:text price:decimal
Or you can leave off the list of field names (in which case you don't get much
in your
Michael Pavling wrote:
> On 19 February 2010 16:14, Ralph Shnelvar wrote:
>> I want to hook the validation routines so that I can flag html labels
>> and change their color to better indicate which fields need to be
>> corrected in a form.
>>
>> Is there a way to do this conveniently and/or conven
Thanks Fred, that explains it.
Thank you very much to all of you for your help.
Pepe
On Feb 19, 11:28 am, Frederick Cheung
wrote:
> On Feb 19, 4:17 pm, pepe wrote:
>
>
>
> > Xavier,
>
> > I had thought about that long ago and I was sure I was working with
> > the right application. I don't hav
On 19 February 2010 16:14, Ralph Shnelvar wrote:
> I want to hook the validation routines so that I can flag html labels
> and change their color to better indicate which fields need to be
> corrected in a form.
>
> Is there a way to do this conveniently and/or conventionally?
you can interrogate
On 19 February 2010 16:03, Hemant Bhargava wrote:
> Colin Law wrote:
>>
>> Googling the error message suggests that this means that it cannot
>> find the fixtures file. How have you specified the fixtures in the
>> _test.rb file and what is the name of the holidays fixture file?
>>
>
> Thanks for
On Feb 19, 4:17 pm, pepe wrote:
> Xavier,
>
> I had thought about that long ago and I was sure I was working with
> the right application. I don't have any other application with the
> same name anywhere in the system and the changes I was making to the
> views for debugging purposes were being
On 19 February 2010 16:19, Ian wrote:
> UI wise, that ends up being a bit awkward. The user thinks they've
> deselected all learners, but if they edit the page again, all the
> learners are still selected.
>
Sheesh.
The save the learners in an array, and restore them yourself on any
failure to up
After a little bit of testing, this plugin seems to solve the problem.
Thanks.
On Feb 18, 6:43 pm, "kwe...@pobox.com" wrote:
> > ... what I'm seeing is that even though Rails is displaying the error
> > message, it's still deleting the associated records in the join table,
> > learners_sessions.
I want to hook the validation routines so that I can flag html labels
and change their color to better indicate which fields need to be
corrected in a form.
Is there a way to do this conveniently and/or conventionally?
--
Posted via http://www.ruby-forum.com/.
--
You received this message becau
UI wise, that ends up being a bit awkward. The user thinks they've
deselected all learners, but if they edit the page again, all the
learners are still selected.
On Feb 19, 3:05 am, Michael Pavling wrote:
> On 18 February 2010 21:47, Ian wrote:
>
> > params[:session][:learner_ids] ||= []
>
> > i
Sharagoz -- wrote:
>> HOMEDRIVE=P:
> Your problem is probably there.
> Run "set HOMEDRIVE=C:"
> To verify that it has been set correctly run "echo %HOMEDRIVE%", which
> should now print out "C:". Try to install rails.
>
> If that enables you to install gems you may want to edit the value
> perma
On Feb 19, 4:14 pm, Ralph Shnelvar wrote:
> I want to hook the validation routines so that I can flag html labels
> and change their color to better indicate which fields need to be
> corrected in a form.
>
> Is there a way to do this conveniently and/or conventionally?
Have a look at field_err
Xavier,
I had thought about that long ago and I was sure I was working with
the right application. I don't have any other application with the
same name anywhere in the system and the changes I was making to the
views for debugging purposes were being processed just fine.
However... I had a copy
Hi, this is my first time posting anything here, and I'd like to make
you aware that I'm quite a newbie myself, so if this is a dull
question, I'd like to offer my excuses.
I'm working on this restful project of mine, and at some point I'll be
sending emails to user with an URL, so they can get to
Colin Law wrote:
>
> Googling the error message suggests that this means that it cannot
> find the fixtures file. How have you specified the fixtures in the
> _test.rb file and what is the name of the holidays fixture file?
>
Thanks for a reply colin.
In test_helper.rb file only i have specifie
On 19 February 2010 12:30, Hemant Bhargava wrote:
> Hello champs,
>
> I am in testing phase of an application. I have created a simple test
> case to add a holiday object like this:-
>
> def test_should_not_add_holiday_without_name
> holiday = Holiday.new
> assert !holiday.save, "Holiday not sav
Anyone listening me ..
> Also how to tackle with plural names in testing.. I mean suppose i have
> one more table leaves and while i'll test it, it will come something
> like this:- "Unable to load leafe, underlying cause no such file to load
> -- leafe"
>
> For this i know that set_fixture_class
> HOMEDRIVE=P:
Your problem is probably there.
Run "set HOMEDRIVE=C:"
To verify that it has been set correctly run "echo %HOMEDRIVE%", which
should now print out "C:". Try to install rails.
If that enables you to install gems you may want to edit the value
permanently to avoid future problems. T
Marnen Laibow-Koser wrote:
> I've got lots of experience with restful_auth -- enough to know that it
> depends on unmaintainable generated code and should not ever be used,
> now that better alternatives exist. Try Authlogic instead. You'll be a
> lot happier.
+1
--
Posted via http://www.rub
On Feb 19, 2010, at 5:14 AM, stevo84 wrote:
The exact problem
a = ''
b = '", str)
So did you try:
a.gsub("") { b }
-Rob
=> quot;inputs
invoice_linequot;>\n-
These kind of errors normally belong to the "editing the wrong file"
bag. Can you double-check that the render :text is there with less(1)
in the production machine? That that tree is the one being served?
That you are pointing your browser to the correct machine?
--
You received this message bec
DanC wrote:
> I hope this isn't a stupid question but I don't understand the 01010 =
> 10 part?
I was simply showing the 01010 in binary (0b01010) is equal to 10 in
decimal.
So in order to create a bit mask all you need to store is a simple
integer (Fixnum).
Example 1:
Say your bit mask value
Manish Belsare wrote:
> "try {
> Element.hide("add_answer_link_for_post_-613772418");
> Element.update("new_answer_form_for_post_-613772418", " action=\"/answers\" method=\"post\" onsubmit=\"new
> Ajax.Request('/answers', {asynchronous:true, evalScripts:true,
> parameters:Form.serialize(this)}); re
On Feb 19, 1:45 pm, John Merlino wrote:
> def signup_success
> @user = User.find params[:id]
> @user.build_contact
> end
>
> protected
>
> Any ideas why it doesn't create a corresponding contact? Thanks for any
> response.
Doesn't look like you save the contact at any point.
Fre
Thanks Conrad,
I knew about the caching and reloading differences, that is the reason
I have been stopping and starting the web server every time while
debugging the production environment. My understanding is that the web
server will work with the application as if it were the first time it
"saw"
Neil Middleton wrote:
> Normally, when using form helpers in Rails, each field directly
> correlates to a method on the appropriate object.
>
> However, I have a form (user signup) that needs to include fields that
> are not part of the user model itself (for instance, card details) but
> need to
Lasse wrote:
> Should acts_as_tree help me out?
I'm not sure. But what doesn't work about your original code?
Anyway, if you need a tree plugin, skip acts_as_tree and use
awesome_nested_set. It's far more efficient for reads.
Best,
--
Marnen Laibow-Koser
http://www.marnen.org
mar...@marnen.o
Aldric Giacomoni wrote:
> Sébastien Clément wrote:
>> I am using Windows Server 2007 SP2
>
>>
>> Then, starting the DOS console as an administrator and retyping the
>> command gives the following result:
>>
>> -
>> C:\>gem install rails
>> ERROR: While executing gem ... (Err
Sharagoz -- wrote:
> The only thing I can think of is that something might be up with an
> environment variable somewhere. If you run "set >> c:\dump.txt" from the
> command line it will export the variables into that file. Post the
> result here if you want us to have a look.
Here is the resul
Hey all,
My intention here is just to create a corresponding contact when a user
signs up, but the said contact is never created, despite using build_*
with a has_one:
User model:
belongs_to :contact
Users Controller:
def signup
@user = User.new
end
def signup_success
@user = Use
Sébastien Clément wrote:
> I am using Windows Server 2007 SP2
>
> Then, starting the DOS console as an administrator and retyping the
> command gives the following result:
>
> -
> C:\>gem install rails
> ERROR: While executing gem ... (Errno::ENOENT)
> No such file or di
On Feb 19, 11:53 am, Martin Berli wrote:
> Works perfectly. But generally, where is the place to put all those
> require statements? Is it in config/environment.rb? Would it be correct
> to add them just at the end of this file?
>
Well if it's a gem then using config.gem inside config/environme
On Fri, Feb 19, 2010 at 1:08 AM, RaW wrote:
> I think
> $ script/generate
> has been replaced with
> $ r g
> in Rails3
>
> Am I right?
>
>
You'll need to do the following in Rails 3:
rails g model user_session
Then just edit the file and you should be good to go.
Good luck,
-Conrad
> --
> Y
Hello champs,
I am in testing phase of an application. I have created a simple test
case to add a holiday object like this:-
def test_should_not_add_holiday_without_name
holiday = Holiday.new
assert !holiday.save, "Holiday not saved without name"
end
In model, i have given validation as vali
On Fri, Feb 19, 2010 at 10:41 AM, Krum Bakalsky wrote:
> In the classical Ruby scenario, we write standalone applications,
> which we run on Ruby VM (there are a lot of VMs, implemented in
> different languages). But when it comes to writing Ruby web
> applications on Rails, we need some more sop
On 19 February 2010 07:26, Farhad wrote:
> PLEASE HELP!!!
> I just did my first installation of ruby on rails. When I go to
> www.mysite.com I get the following error:
>
> We're sorry, but something went wrong.
>
> We've been notified about this issue and we'll take a look at it
> shortly.
Have a
You can use attr_accessor to create new model attributes that are not
present in the database.
For example, lets say you want to have a field "password" that the user
types in, but this field is not going to be stored in the database.
Instead the table will have a field "encrypted_password" tha
Hello,
I've seen all sorts of places where people put their 'require'
statements,
and I'm not sure what the best solution is. I'm currently using it
directly
in a model/csv_processor.rb:
require 'fastercsv'
class CsvProcessor
def self.create_csv_table(file)
...
FCSV.parse(...
Hi guys,
It's a pleasure for me to join your community mailing list. I am a
keen software engineer and experimenter, and happen to investigate and
dive into the Ruby language from a couple of weeks. So far i have
become familiar with the basics of the syntax and semantics of the
language, and, of
> This is the error..
That's not an error, thats the script that should be run on the page
when the request completes. Are you sure you're submitting an ajax
request, and not just a regular request?
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscrib
On Fri, Feb 19, 2010 at 11:48 AM, stevo84 wrote:
> Argh - slashes missing -> here is the pastie code -> http://pastie.org/832493
Easier:
"abc".gsub("b") { |_| str }
There str is taken verbatim.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails:
Argh - slashes missing -> here is the pastie code -> http://pastie.org/832493
On 19 Lut, 11:46, stevo84 wrote:
> It was received from already escaped html mixed with javascript - that
> is why :(
> I have no influence on the fact that these slashes are there...
>
> Anyway I have came up with a so
It was received from already escaped html mixed with javascript - that
is why :(
I have no influence on the fact that these slashes are there...
Anyway I have came up with a solution - maybe there is a simpler way,
however the code below works
str = '\&123'
puts "abc".gsub("b", str.gsub(
Lasse wrote:
> Should acts_as_tree help me out?
Hi,
As you need hierarchical structure. and straight forward parent ->
child relationship so, you will use acts_as_tree.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "
Damn I had that feeling, some of the code (and probably all the tests) was
dragged in from a 2.1.1 project.
Thanks. I will have to look into upgrading the project.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, se
Hi folks
when I start 'rails server -e test' it runs perfect (there is a
process, I can find the server.pid file and run tests), but adding -d
to the start command just shows the start of the server and nothing
(no process, no pid file, no tests). And nothing in the logs to answer
this.
Same when
On Feb 19, 9:37 am, Peter Hickman
wrote:
> I have taken over some old Rails code and am trying to get the tests to run.
> In the functional test every time the assertion 'assert_redirected_to' is
> called I get the following error:
Rails 2.0.2 isn;t compatible with ruby 1.8.7 - Rails 2.1 is the
On Feb 19, 8:47 am, stevo84 wrote:
> ruby 1.8.6 (2007-09-24 patchlevel 111)
>
> str = '\&123'
> puts "abc".gsub("b", str)
> puts "abc".gsub("b", "#{str}")
> puts "abc".gsub("b", str.to_s)
> puts "abc".gsub("b", '\&123')
> puts "abc".gsub("b", "\&123")
Why are you escaping the & at all ?
str =
can you tell the Os you using on which you wanna intsall it
On Fri, Feb 19, 2010 at 3:29 PM, Priyanka Pathak wrote:
> Hi,
> As you want to install ruby on rails on linux system. so refer this
> url
> http://wiki.rubyonrails.org/getting-started/installation/linux
> --
> Posted via http://www.rub
Not sure I understand. From
a&123c<--- This I want to achieve using temporary
I ask, do you know that & does not need escaping?
"abc".gsub("b", "&123") # => "a&123c"
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
T
1 - 100 of 119 matches
Mail list logo
|