similar to: RubyToken::AlreadyDefinedToken and Edge Rails Docs

Displaying 20 results from an estimated 400 matches similar to: "RubyToken::AlreadyDefinedToken and Edge Rails Docs"

2008 Jan 04
1
patch for html display
All, I''ve found that the html view for the rspec formatter falls to pieces with Rails 2.02 and rspec 1.10. Has anyone else run into this trouble? Here''s a monkey patch that fixes the problem. A more elegant fix would be in order, but this gets the job done: Index: /Users/timcharper/www/exchange/vendor/plugins/rspec/lib/spec/runner/formatter/text_mate_formatter.rb
2005 Dec 14
1
just installed rails on ubuntu, error creating rails dir -->unexpected token: ''#<RubyToken::TkLPAREN:
Hello there good rails people! Just did a fresh install of rails on my new (old) Ubuntu machine. I am running ruby 1.8.2 and have installed about five extra packages that do not come with Ubuntu. I managed to install ruby-gems and used gems to successfully install rails but I am getting an error message when I run rails, it seems to be choking on a Tkl paren. Google has not turned up much
2008 Dec 31
6
tlsv1 alert decrypt error
I''m using the standard webrick server with puppet, and I just started getting this today (for no apparent reason). info: Loading fact custom_facts info: Retrieving plugins err: /File[/var/puppet/lib]: Failed to generate additional resources during transaction: Certificates were not trusted: tlsv1 alert decrypt error err: /File[/var/puppet/lib]: Failed to retrieve current state of
2007 Jul 23
2
Acts_As_Ferret: disable_ferret and Callbacks
Does disable_ferret monkey with callbacks at all? I have a model in my application that has associated models which perform callbacks after their validation (they''re all instantiated around the same time). I recently added a conditional call to disable ferret provided a flag and I''m finding these callbacks aren''t quite working right. Here''s a code sample:
2007 Oct 24
13
Ryan Bates' Multi-object Forms and the date_select
I think I''ve found a bug with Edge. I''m trying out Ryan Bates'' multi-object form technique shown in one of his Rails-casts (railscasts.com/episodes/75). If you use a fields_for similar to that shown (here: http://pastie.caboo.se/110480), you get a Server Error 500: ------ Status: 500 Internal Server Error Conflicting types for parameter containers. Expected an
2008 Mar 13
1
Merb Projects and Autotest
Hi! I''m rather new to Merb, but I thought I''d give it a shot. I found that autotest wasn''t running my specs when my models were changing. Maybe this is because of how I have set up Merb, but in the even that it''s not just me, I''ve adapted Autotest''s mappings for Rails and have attached my efforts to this email. Unfortunately, you need to
2011 Mar 02
6
calbacks on models
Hi, I''m having some strange behavior on callbacks when testing with RSpec2. On my test, when I create a resource using the #create method the callbacks related to #before_create are not called. If I go to the console and I try to type the command Resource.create(client_uri: "http://example.com") all works fine. There are no mocks around, and I can''t understand if this
2008 Sep 27
6
Why no rspec-rails gem?
I was getting a little tired of adding 2 plugins every time I create a new rails project, so I just built an rspec-rails gemspec, and it works perfectly well. Does anybody know why there isn''t a public rspec-rails gem? Tim
2008 Jul 04
4
Routing and Parameters
Greetings. I have a route something like this: map.calendar ''/tasks/:year/:month'', :controller => ''tasks'', :action => ''calendar'', :year => /\d{4}/, :month => /\d{2}/ (Ignore the obvious problems of invalid data.) I''m trying to create a form that will allow my users to navigate from one month/year to the next.
2011 Mar 10
1
Rspec single file
Hi Guys, How can run the single spec file without loading the environment. I know ruby spec commands will load the total environment. I want to run the files one by one those are not in same folder and i want to load test environment once for all 10 files. Can we run single file through the Rspec:Core:Runner or some other class? Can you guys please help me? -Thanks -------------- next part
2002 Sep 20
1
Mounting a ntfs on a w2k server onto a SuSE linux 8 setup at boot time.
Hi, I am a new Linux user and I need help. I have a W2K server with a couple of shared folders formated in the NTFS File format. Can I edit the FSTAB file so they can be mounted automatically. I have tried the SMBFS way but it keeps sayoing that i need to be SUID???? Can I use the VFAT command instead as that thw way my WinMe patitions on the same harddisk as Linux is done??? Thanks for any
2008 Apr 22
1
''dependencies'' and RedCloth
Hey gang. Jed noticed an issue with the ''dependency''/''dependencies'' macro the other day when working on the Collective wiki. Namely, if you make RedCloth a dependency Merb gets a little cranky. I think I have this figured out when doing some mods to Collective today too. However, before I go trying to fix this in Merb, I wanted to run this by the community.
2005 Dec 29
5
Ruby-GetText-Package-1.1.0
Hi, Ruby-GetText-Package-1.1.0 is now available. This release enhances many features for Ruby on Rails. I hope this release make your Application support L10n. And thanks for many helps! Highlights ---------- * Added some functions which managed po/mo files easily. * GetText.update_pofiles creates/updates pot/po files. The idea is from Sascha Ebach. * String% is extended to accept
2007 Jul 25
5
set_default_values rocket science - continuing after_initialize/after_find misfeature
Just starting a new thread so that it''s easy to follow. I just submitted a patch at trac to add a new class method called "set_default_values" ( not a great name I think ), which lets you do all kinds of crazy stuff with setting default values. This ticket is at http://dev.rubyonrails.org/ticket/9093 and example pastie is at http://pastie.caboo.se/81925 It also lets you make
2006 Mar 05
1
rdoc on edge rail fails at generator template
Infinite loop at a generator template :- controller.rb: c railties/lib/rails_generator/generators/components/controller/templates/controll er.rb:3:15: Expected class name or ''<<''. Got RubyToken::TkLT: "<" And BTW why are templates named .rb ? Thanks -- Posted via http://www.ruby-forum.com/.
2005 Apr 29
2
problem installing login generator on windows
Hi, I had a non-fatal problem installing the login generator on Windows w/ rails 0.12.1. Has anyone else run into this or know what''s wrong? c:\devel\ruby>gem install --source http://dist.leetsoft.com login_generator c:\devel\ruby>"c:\devel\ruby\bin\ruby.exe" "c:\devel\ruby\bin\gem" install --source http://dist.leetsoft.com login_generator Attempting local
2006 Jan 31
2
Problem generating CHM Rails doc
Hi, I have problem generating chm file for the rails doc. I''ve commaned the rdoc to generate the chm by: rdoc -f chm -o chm_folder action* rails-* It gave me the following error: vendor/rails/railties/lib/rails_generator/generators/components/controller/templates/controller.rb:3:15: Expected class name or ''<<''. G ot RubyToken::TkLT: "<" By adding
2005 Mar 05
3
login generator problem
I am trying to use the login generator, but I keep getting the following error when I run "generate login Account": /usr/lib/ruby/gems/1.8/gems/rails-0.10.0/lib/rails_generator/base.rb:84:in `manifest'': No manifest for ''login'' generator. (NotImplementedError) from (eval):3:in `__send__'' from (eval):3:in `manifest'' from
2007 Nov 08
0
error on migration
Hi all, I''m just getting started with rspec. I''m using trunk rspec with edge rails. I get an error on migration though, here it is: rake db:migrate RAILS_ENV="test" --trace (in /home/pat/railsapp) ** Invoke db:migrate (first_time) ** Invoke environment (first_time) ** Execute environment rake aborted! undefined method `failure_message'' for class
2007 Aug 07
4
Execute additional commands after creating database?
I''m writing some code that accesses some lagacy database on PostgreSQL. Since the old database had some really ughly and weird naming conventions (like CamelCase). To work around this I created a second schema (named rails) in the same database and gave the tables and fields some rails-friendly names. The database user that Rails uses has its search_path set to the rails schema. That way