search for: textsnippet

Displaying 14 results from an estimated 14 matches for "textsnippet".

Did you mean: textsnippets
2006 Apr 10
3
Simple act_as template
Hello ! I posted a simple template to show how to add ''act_as_whatever'' to ActiveRecord. I think this might be useful to others as there are some trickery ruby things in this file. Here is the template : http://textsnippets.com/posts/show/384 Gaspard Bucher -- Posted via http://www.ruby-forum.com/.
2006 Jul 21
3
segfaulting at rebiuild_index
Hello, I can''t figure out how to get acts_as_ferret to stop segfaulting. Every time i run a query on my server (rails 1.1.4 and ferret .9.4 and aaf from svn) I get a segfault ./script/../config/../vendor/plugins/acts_as_ferret/lib/acts_as_ferret.rb:243: [BUG] Segmentation fault this line is where the indx is rebuilt. " def rebuild_index(*additional_models)
2006 Jan 14
7
Rails on Resin
Anyone figured out how to get rails/fastcgi to run on Resin. I assume it would be similar to PHP, which there are directions here: http://www.caucho.com/resin-3.0/thirdparty/php.xtp One thing that confuses me is that it wants a server address: <server-address>localhost:8002</server-address> Apparently you start the php process, like this: php -b 8002 And then the PHP process
2006 Jun 23
1
Best practices in test logging
...hen no longer needed All the introspection I do _when needed_ in tests. And that means removing logging statements from tests as soon as they are not needed - when test passes. Do you have any thoughts or suggestions to improve my test environment? I put my test_helper.rb here: http://textsnippets.com/posts/show/522 Regards, -- ?ukasz Piestrzeniewicz Recce - Requirements management made simple http://recce.com/signup My blog: http://ragnarson.blogspot.com -- Posted via http://www.ruby-forum.com/.
2006 Apr 21
1
Using fixtures inside migrations
Hi, I want to add data from a fixture file to a table inside a migration. I''ve saved the file in db/migrate/fixtures/countries.yml I guess I could just open the file, read the entries, and add them to the database using AR, but I''m hoping I can use Rails for all that. Also, if I have a file, say, with 200,000+ records, what would be the best method (performance-wise) to go
2006 Dec 21
0
CSS live edit with ajax (part of Zena)
I posted a snippet (http://textsnippets.com/posts/show/857) on how to use AJAX to edit your CSS without having to reload pages. It''s fast and makes my life a lot easier... Gaspard PS: This trick is used to build ''Zena'', a rails based CMS which will go open source during this winter. -- Posted via http://w...
2007 Aug 06
1
Question Possibility.
Hi everyone i am new to the rails and enjoying what this framework has to offer. And I have a job interview comming up as rails developer. I have passed the 1st stage which was theory and I was wondering if you could give me some potential coding exercise that might come in the interview. for instance loops ? related to ORM and anything else you can think of. -- Posted via
2006 Apr 03
2
HABTM migrations
Bad rails day for Matt- In a migration, for a habtm: create_table :teams_users do |t| t.column :team_id, :integer t.column :user_id, :integer end Ok, fine. In a controller (well really a migration script): @user.teams << Team.find( 3 ) And the SQL pumped at my server is: INSERT INTO teams_users (`team_id`, `id`, `user_id`) VALUES (3, 3, 34) Which
2006 May 08
10
Apache 2.2, ProxyPass and HTTPS
...tead of the ssl version https://admin.example.com:12345/ - is this because mongrel/rails is only seeing a http request? And if so is it possible to let the app know that it''s actually https and in a subdirectory? Paul. Mongrel version: 0.3.12.4 Server version: Apache/2.2.2 [1] - http://textsnippets.com/posts/show/400 [2] - http://blog.innerewut.de/articles/2006/04/21/scaling-rails-with-apache-2-2-mod_proxy_balancer-and-mongrel
2005 Dec 16
6
rake remote_exec on Windows
I am using the shovel deploy.rb from http://nubyonrails.com/pages/shovel I have SwitchTower-ized my app, copied the shovel deploy.rb file and put my settings in it. But when I run "rake remote_exec ACTION=setup_lighty" from the local app root it has no effect. It should prompt for a password for at least throw an error? I just get returned to the DOS prompt. If I do "rake
2006 Jan 25
6
Displaying based on hostname/subdomain
Ive tried multiple ideas to get this to work, but keep hitting a dead end. Has anyone done this before? I want joe.domain.com to display www.domain.com/profile/joe Im using lighttpd. Routes dont have access to the URL string and therefore I cant code in a conditional. lighttpd rewrite seems to really screw it all up. Is there a feasible solution? Thank you, Joe Noon
2006 Jul 06
5
acts_as_ferret Locale issue
I''ve just installed acts_as_ferret, and am trying to build my index, but I''m getting the following error: >> r = Topic.find_by_contents(''testing'') StandardError: : Error occured at <analysis.c>:704 Error: exception 2 not handled: Error decoding input string. Check that you have the locale set correctly from
2006 May 19
12
Mongrel/Apache and static content
I''m looking for an easy way to have mongrel only serve dynamic railscontent, while letting Apache serve non-Rails content. Unfortunately,it seems that you have to segregate the static content in its ownfolder. That was also the case with the SCGI runner. I used thetrick outlined athttp://comments.gmane.org/gmane.comp.lang.ruby.rails/23347 to managethis. I was curious if a similar
2006 Apr 03
16
Dealing with Application error (Rails) in production
Hi all, Week 2 working with Ruby on Rails... I have a working app in development that is now throwing a generic, "Application error (Rails)" message in production. How do I deal with this so I can find more information about why the error is being thrown in production, but not in development? Thanks! -- Posted via http://www.ruby-forum.com/.