Displaying 20 results from an estimated 10000 matches similar to: "when will "TODO" comment/rake support come out?"
2010 May 17
6
Should an blank string be html_safe?
Just trying to implement a simple helper over the past few days had me
really confused.
messages = ''''
messages << content_tag(:p, ''dave'')
#=> <p>dave<\p%;gt;
Eventually I realised the original empty string was not html_safe
message = ''''.html_safe
message << content_tag(:p, ''dave'')
#=>
2008 Jan 21
8
Polymorphic URL helpers documentation and fixes
Yesterday I answered a question regarding polymorphic URL helpers on Core ML
and noticed that the module has no documentation. I''ve documented it and
rewritten unit tests using Mocha. I also optimized some of the code slightly
(nothing major, though). The patch also includes two fixes by Geoff Buesing,
who has done awesome work in this area in the past.
2010 May 12
16
In development mode not all types are included in the query related to type
class User
end
class Agent < User
end
script/console production
User.find_by_name ''john''
SELECT "people".* FROM "people" WHERE ((("people"."type" = ''User'' OR
"people"."type" = ''Manager'') OR "people"."type" = ''Agent'')) AND
2010 Apr 16
1
Active Record observers broken: can't be used for "before" callbacks
I was just wondering what about a report that I made almost 2 months
ago: Active
Record observers
broken<https://rails.lighthouseapp.com/projects/8994/tickets/4087-activerecord-observers-cant-be-used-for-before-callbacks>
I think it''s a pretty big bug. In Rails 3, creating an observer with a
"before_save" callback (for instance) will result in all observed models
being
2006 Jul 25
3
create production tables? use "rake db:migrate"?
Hi,
What is the normal mechanism for creating the tables in the (a) test and
(b) production databases.
For example the following didn''t work for creating the production
tables:
a) change environment.rb to include "ENV[''RAILS_ENV''] ||= ''production''"
b) run "rake db:migrate"
However this seemed to still work against DEV not
2006 Jul 23
18
help with "rake db:migrate" error please?
Hi,
Just trying to get my first database based rails app up on
dreamhost.com. The app was working prior to putting in mysql DB usage
but I''m just stuck on getting the app working with mysql. I''ve already
created the database and can connect to it manually.
Below is the error I get after running the rake migrate. It worked OK
on my home PC environment. I did change the
2008 Mar 04
4
ActionView 2.0.2 broken without ActionController
Hello all,
You can easily reproduce with Rails 2.0.2 gems:
$ irb
>> require ''rubygems''
>> require ''active_support''
>> require ''action_pack''
>> require ''action_view''
*BOOM*
You should get an error:
MissingSourceFile: no such file to load -- html/document
This is because
2008 Sep 13
4
rake does recognize "rake examples_with_rcov"
Hi,
Q1 - Know why rake doesn''t recognize "rake examples_with_rcov" per
http://rspec.info/documentation/tools/rcov.html ?
Q2 - Also when I run "rake spec:rcov" it seems to give me the same as
if I just run "autotest" or "rake spec". I was expecting a heap of
pointers to code I haven''t tested?
2007 Sep 27
6
Security + Rails =Joke?
Hi,
http://dev.rubyonrails.org/ticket/8453
http://dev.rubyonrails.org/ticket/8371
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-3227
I came across the above by accident. While I am subscribed to the so
called rails security list where supposed announcement of security
issues were to be posted, neither of the above problem made the list.
While I use rails a lot and like it, the above
2008 Nov 06
8
anyone able to explain logic behind "rake spec" startup (e.g. db:test:prepare => abort_if_pending_migration => invoke environment => etc etc)
anyone able to explain logic behind "rake spec" startup? i.e. the
below steps & why things occur when they do
Macintosh-2:myequity greg$ rake spec --trace
(in /Users/greg/source/myequity)
** Invoke spec (first_time)
** Invoke db:test:prepare (first_time)
** Invoke db:abort_if_pending_migrations (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute
2006 Jul 26
9
RadRails config? Getting blank project only created?
Hi,
Does anyone know how to correctly configure RadRails (0.7)?
I can''t seem to get 0.7 version of radrails to create a Rails project.
All I get is a blank project. I have ensured that my PATH does point to
my ruby\bin area. Also any clarification regarding which directory
(with an example) should be used for the following preferences setting
(are they asking for a file or
2006 Jul 26
3
Capistrano - freezes & I don''t get prompted for password??
Hi,
Just having a problem trying to get capistrano working to the remote
server. I''ve set things up per the below to links, but when I enter
"cap setup" (or "rake remote:exec ACTION=setup" - I assume they are the
same) then things FREEZE and it never asks me for a password. I have to
kill the "cmd" window.
Is there a way to get some level of trace or
2010 Sep 08
2
Rails 2.3.9 breaks sessions with Active Record or Memcache store
A Rails 2.3.9 app with Active Record or Memcache session store will never
send the session ID cookie to a client if the client doesn''t send any HTTP
cookies in its requests. Rails integration tests didn''t catch this because
they always send the HTTP_COOKIE header, even if it''s empty.
This is a huge bug, as it can break keeping sessions on sites which don''t
set
2006 Aug 15
3
Versions Compatibility and RAILS_GEM_VERSION
Is there any problem with versions compatibility?
A project I started with 1.1.2 cannot run with 1.1.4.
Dreamhost recently updated their rails from 1.1.2 to 1.1.5 and 1.1.6.
Needless to say I got "Application Error". However when I changed
RAILS_GEM_VERSION to either 1.1.5 or 1.1.6, it works. (Haven''t made a
thorough checking though.)
Here it seems there is no
2006 Jul 27
5
Dreamhost working deploy.rb? Can anyone post/send me a copy?
Hi,
Just trying to get Capistrano working to Dreamhost. I''m hitting a
permissions issue on the reaper file at the moment.
Has anyone a copy of the capistrano DEPLOY.RB file they could post or
send me a copy of please?
Thanks
Greg
--
Posted via http://www.ruby-forum.com/.
2007 Feb 05
10
how does Mocha compare in terms of classical vs mock-based testing, and stubbing???
Hi guys,
I''ve just been reading Martin Fowler''s article re mock versus
stubbing<http://martinfowler.com/articles/mocksArentStubs.html>where
he compares traditional TDD testing techniques with mock based
testing. I''d be interested in comments from a ruby on rails perspective in
terms of this and Mocha? For example:
a) Do you see Mocha as a robust way to test Ruby
2007 Jun 28
23
DRYing link_to with a symbol
Hi, I just put in a patch that allows you to DRY up this:
<%= link_to @company.name, @company %>
to this:
<%= link_to :name, @company %>
The symbol indicates the method to be called on the object passed in
the link_to options.
http://dev.rubyonrails.org/ticket/8789
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
2006 Jul 29
6
why is webrick running in development mode?
Hi,
I changed my environmnet.rb to say PRODUCTION mode, however when I start
up a server "ruby scripts/server"
a) it runs in development mode (via the logs) - any ideas why?
b) why does webbrick run - I thought by default now it was supposed to
be lightty
Tks
--
Posted via http://www.ruby-forum.com/.
2006 Jul 19
11
Hosting a Ruby App From Home - Approach?
Hi,
Any advice/comments on the potential for hosting some personal Ruby
applications from home? (i.e. for learning, sharing with friends etc)
Would the basic concept be:
* Need to buy a static IP address from you ISP
* By a domain name and point it to the static IP address
* Run Apache as the front end web server
- Q: What basic lockdown/security steps should one take?
* Perform a PORT
2007 May 24
3
Exception Notification Plugin Question
Hi,
I have two questions re the Exception Notifier plugin (i.e. which you
install via "ruby script/plugin install exception_notification")
Q1 - In it''s current setup (where it uses /public/500.html) is it possible
to remove the "Status: 500 Internal Server Error Content-Type: text/html"
text which seems to mysteriously get place at the top of the page?
Q2 -