search for: teksol

Displaying 20 results from an estimated 231 matches for "teksol".

2006 Jul 26
2
ResponseLogger Plugin
...;<em>It works!</em>''); <=== == ResponseLogger Logging the response value is easy. Simply install the plugin and it works. The plugin will not log the response body in non-development mode. == Installation Nothing could be simpler: $ script/plugin source svn://svn.teksol.info/svn/rails/plugins $ script/plugin install response-logger Alternatively, you can install using +svn:externals+ by doing: $ script/plugin source svn://svn.teksol.info/svn/rails/plugins $ script/plugin install -x response-logger == License This plugin is released under the MIT License....
2006 Aug 25
10
SVN security hole explained
Hi all, If you are using Pound / Pen or another load balancer, I believe you should read this: http://blog.teksol.info/articles/2006/08/25/subversion-metadata-exposure-on-mongrel My article refers to Dan Benjamin''s http://hivelogic.com/articles/2006/04/30/preventing_svn_exposure My point is that even though we are preventing Apache from serving anything except a select few file extensions, Mongrel i...
2006 Dec 08
2
Windows Tempfile Fix Plugin
...'t set it's Tempfile to work in binary mode. Since I deploy on Linux, that has never been a big problem, but now I'm working on some software that works with binary files exclusively. Anyway, I am making this fix available as a Rails plugin. The details can be found here: http://blog.teksol.info/articles/2006/12/08/windows-tempfile-fix-plugin If you'd prefer patching your Ruby, the fix is in tempfile.rb:55. Or File::BINARY to the other constants in the File#open call. Enjoy ! -- François Beausoleil http://blog.teksol.info/ http://piston.rubyforge.org/ --~--~---------~--~----~...
2006 Dec 08
2
Windows Tempfile Fix Plugin
...'t set it's Tempfile to work in binary mode. Since I deploy on Linux, that has never been a big problem, but now I'm working on some software that works with binary files exclusively. Anyway, I am making this fix available as a Rails plugin. The details can be found here: http://blog.teksol.info/articles/2006/12/08/windows-tempfile-fix-plugin If you'd prefer patching your Ruby, the fix is in tempfile.rb:55. Or File::BINARY to the other constants in the File#open call. Enjoy ! -- François Beausoleil http://blog.teksol.info/ http://piston.rubyforge.org/ --~--~---------~--~----~...
2007 Dec 19
2
Nested partials losing the view context ?
...eries" to get the name. This is the parameter I received from _form.html.erb. On line 3, I use series again, but this time, it is treated as a missing method call, and ends up in the controller, as designed. Can anyone shed any light on this ? Thanks ! -- Fran?ois Beausoleil http://blog.teksol.info/
2007 May 17
4
How to mock helpers in view specs ?
...sers" do @forums_proxy.should_receive(:readable_by).with(nil).and_return([]) do_render end def do_render render "forum_categories/index" end end What am I doing wrong ? This is on RSpec 0.9.4 and RSpec on Rails 0.9.4. Thanks ! -- Fran?ois Beausoleil http://blog.teksol.info/ http://piston.rubyforge.org/
2005 Dec 07
5
InPlaceEditor update of page contents ?
Hi all ! InPlaceEditor refreshes only the element that was updated. Is there any way to make it update tons of other stuff ? I have a table where changing a value in it causes changes in most other cells (weight to percentage to money). Thanks for any help ! -- François Beausoleil http://blog.teksol.info/ _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
2006 Mar 13
4
Storing model object in session in EdgeRails
I''m having a problem with sessions since upgrading to EdgeRails. Against certain recomendations, I''m storing the current user''s model object in the session. This worked fine in 1.0 and earlier, but now I am noticing that any time I reference the associated objects for an object stored in the session, the associated objects get copied into the session! For example,
2006 Jul 20
5
Apache 2.2, Mongrel and #caches_page
...ring. I tried: RewriteRule ^(.*)$ balancer://smrty/ [QSA,L] but that simply generates an HTML file that says "Found, document moved here", with here being a link to "balancer://smrty/". Anybody knows what I should be using here ? Thanks ! -- Fran?ois Beausoleil http://blog.teksol.info/
2006 Mar 14
7
Single form w/ relationships: how do I integrate it?
OK - I know this has been asked before, but I cannot find it in the archives. Forgive me if I''m creating more noise than I should. I want to know the easiest way to deal with this scenario: I have articles. I have categories for the articles. On the form where you write an article, there needs to be a free-form field to entire the category. The create() method will build the
2006 Mar 24
8
[OT] Does Net::HTTP support secure connections ?
Hi ! I''m trying to connect to an https URL, but it seems it doesn''t work. Has anyone successfully connected from Ruby to an HTTPS server ? Thanks ! -- Fran?ois Beausoleil http://blog.teksol.info/
2006 Jan 04
1
[SOLVED] Am I going too far or Rails is just confusing?
On 1/4/06, John Indra <ji.milist@gmail.com> wrote: > However, it doesn''t work for me. Following your article, I change my I have found the source of the problem. I follow the solution provided by http://blog.teksol.info/articles/2006/01/03/belongs_to-user-interface-take-ii It''s a nice solution, however it contains typo :) There is indeed no error_messages_on method, instead error_message_on :) You can update your article Francois ;) Tq, John
2006 Jan 20
3
Process watchdogging anyone ?
...ocess on CPAN, but it won''t install. There''s some kind of error. Launchd would be ideal, unfortunately, I''m on Debian. Anyone has a good solution ? Maybe I should simply switch to FastCGI and let Lighty handle the details ? Thanks ! -- Fran?ois Beausoleil http://blog.teksol.info/
2005 Dec 29
1
Best way to prune my list of returned rows?
Every example and tutorial I can find shows how to create and paginate a list of rows returned from a table. But I''m trying to write an interface on top of an existing table with 4million rows. So I need to jump right to the lesson on searching my data. That, I can''t find. Can somebody tell me the techniques available for pruning down my list a bit? I found a
2007 Jan 29
2
Cryptic error message when no controller_name
...ler.rb is: @controller.session = session We are probably only missing a check to ensure that @controller is somehow defined. Failing that should simply say "You forgot to define controller_name in your controller spec". This is on 0.7.5.1. Thanks ! -- Fran?ois Beausoleil http://blog.teksol.info/ http://piston.rubyforge.org/
2006 May 24
1
Observer behavior differences between DEV and TEST environments ?
...rd.observers = :greenback_transaction_observer end So, I think I''m doing all the steps in the right order, and everything should be fine. Except things aren''t working correctly. Anybody sees anything obviously wrong from the above ? Thanks ! -- Fran?ois Beausoleil http://blog.teksol.info/
2006 May 03
8
Subversion and tmp directory in Rails 1.1 project
Hello everyone! I''m thinking of the right way to store tmp/ directory of Rails 1.1 project in Subversion. It has cache, session and sockets subdirectories. To me, it looks good to have svn delete tmp/* svn propset svn:ignore "*" tmp So it will ignore all directories and files in tmp/. Even if you create sessions/ and put some files in it, tmp/ content is still ignored. But
2006 Feb 24
6
when i save, rails doesnt update the model instance with the id of the new record
Hi everybody, Im using sqlserver (sqlserver adapter). I think that is some bug. any idea? -- _________ Noel R. Morais
2006 May 11
3
Setting cookie value in test
In the initial version of my application I am just going to require cookies - down the road _considering_ changing that and providing something that works without. Anyway, this is somewhat of a two part question 1. Does this approach make sense or is there a better way typically used? Just have a before_filter in my application.rb to verify that the :_session_id cookie is present. If it
2007 Jan 24
7
Differences between assert_tag and assert_select
...ot doing right, for sure. #assert_select is supposed to be so much easier to use, but I'm not find that at all. I just learned about "a[onclick*=?]", and I can make my test pass with that. But regexps sure are something I use very often. Thanks ! -- François Beausoleil http://blog.teksol.info/ http://piston.rubyforge.org/ --~--~---------~--~----~------------~-------~--~----~ 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-talk@googlegroups.com To unsubscribe from this...