search for: eustaquiorangel

Displaying 7 results from an estimated 7 matches for "eustaquiorangel".

2006 Apr 13
8
Controller paths
Hi there. Suppose I create some controllers like ruby script/generate controller Admin::product add remove ruby script/generate controller Admin::user add remove ruby script/generate controller Login login logout the directory structure will be app/controllers/admin/product_controller.rb app/controllers/admin/user_controller.rb app/controllers/login_controller.rb Now suppose I need some links
2009 Oct 03
1
NTLM
...he safety level to NTLM (not using NTLMv2), when used with Windows Vista, without warning the user about that, sending the username and password as plain text, and for that reason Firefox is "junk", not IE (oh,boy), who worked on the expected way. I'll write a post on my blog (http://eustaquiorangel.com, it's Portuguese but I'm wondering on this case would not be a good idea to make an English version also) about all this and we'll continue the discussion on the college on the next, but first I'd like to ask you about that. Seems you Samba guys made some reverse engineering ov...
2006 Apr 10
3
Upload an image
Hello there. :-) I have this view: <%= form_tag({:action => ''create''}, :multipart => true) %> <table> <tr> <td>User</td><td><%= text_field("user","name") %></td> </tr> <tr> <td>Image</td><td><%=
2006 May 23
4
Protecting the source code.
Hello guys. I need an opinion here. I need to make a mid-big size web project. Will be a project that my boss wants to sell, and he don''t think show the source code is a good idea and me neither, I love free software but on this case will be a software made for a company who wants to try to make some money with it. My question is: PHP have things like Zend Guard
2006 Jul 24
0
Inflector stops on the first match
Hi there. I''m checking the Inflector code there and found, for example, on singularize: inflections.singulars.each { |(rule, replacement)| break if result.gsub!(rule, replacement) } This means that when it finds the first match, it breaks and stops processing rules? And what if I need to deal with more that one rule on the same string? For example, working on the middle and the end
2006 Jun 01
2
Union all
Hi there. I have two models (and two tables, of course), let''s call them Room and Reserved, with similar fields but with the last one with some extra info, and need to get data from both using a "union all". Let''s think on a hotel where I need to "glue" data to take a snapshot from the occupation like: Room (number,date,ocupied_by)
2006 Aug 08
1
Best way to get data from n+1 models
Hello there. Sometime ago I asked was the best way to retrieve data like an "union all", and unfortunely I could not find the URL on the forum. I asked about, for example, hotel rooms and reservation. On another case, I could ask for a plane occupation: a model that takes care of the sold tickets and another one with the reservations. To get the full map of the plane I need to get