search for: margoli

Displaying 20 results from an estimated 46 matches for "margoli".

Did you mean: margolis
2006 Jul 22
5
Prototype error. replace content inside a <TR> in IE
...39;wireless_request/wrequest'', :locals => {:wrequest => @wrequest} end This ends up making IE throw an "rjs error [object error]" Searching around I found a couple of posts about modifying a few lines of version 1.4 of prototype but I have 1.5.0_rc0. Thank you, Matthew Margolis blog.mattmargolis.net
2006 Jun 26
8
[Semi OT] BlindDown and a floated div
...at if I do not float the div then the Firefox problem does not occur but I need to float the div for the drop shadow to look correct. I realize that the above description is probably a little hard to understand so I took a screen shot of what I am talking about and made a visual http://www.mattmargolis.net/bd.gif Any ideas as for how I can either do a drop shadow that looks like the above without floating a div or get BlindDown to work right in Firefox with floated divs would be greatly appreciated. Thank you, Matthew Margolis blog.mattmargolis.net
2006 Jul 02
2
:include breaks has_many :order
...ord::Base acts_as_list :scope => :farmer end If I do Farmer.find(:first).cows I get the correct cow order. If I do Farmer.find(:first, :include => ''cows'') then I get the wrong cow order. Any insight into if this is a bug or intended behavior would be great. Matthew Margolis blog.mattmargolis.net
2006 Jun 19
6
SQL Search Qustion
...ds in the search string so I assume that I will have to do some ruby string manipulation to modify the query. Any advice on how to start? I don''t know much SQL right now but I think a join would be used here as I need info from both the people table and pets table? Thank you, Matthew Margolis blog.mattmargolis.net
2008 Apr 08
2
Metropolis acceptance rates
...nteger) and then look at my screen. But it seems odd that this datum is not being put into output objects, so I wonder if I'm missing something. Plus sometimes I can save the output object, but then the power goes out and what's on screen is gone forever. Thanks, Michael Michael Margolis Profesor Investigador Escuela de Economía Universidad de Guanajuato UCEA-Campus Marfil, Fracc 1 El Establo, Guanajuato, Gto. CP 36250 Mexico (52)(473) 735 29 25 Ext. 2858 [[alternative HTML version deleted]]
2006 Jun 23
10
Don''t un-admin the last administrator
...nger have admin status. I have no idea where to start for the validation if I was to go that route for similar reasons as the before_update. Do any of you have any examples of code that prevents the deletion/update of an object based on a particular field''s value? Thank you, Matthew Margolis blog.mattmargolis.net
2007 Sep 21
3
Standardize environment between specs containing class defs
...ubclass in ruby without causing an exception. I want the resetting to be as automatic as possible since calling remove_constant on every class my code defines after each spec is a real pain since this situation is going to crop up in lots of different specs and describe blocks. Thank you, Matt Margolis
2006 Jun 20
2
Validation error_messages_for problem
...esn''t show any errors(which is bad). If I go into the console and make an invalid user I am shown the correct errors in @user.error so my validations are working on the model, they just aren''t making their way through the controller to the view. Any ideas? Thank you, Matthew Margolis blog.mattmargolis.net
2006 Jul 02
3
2 before_filters, only want one to render something
...(:controller => "account", :action => "login") return end end def admin_authorize unless session[:user] && User.find(session[:user]).admin? redirect_to :controller=> "groups", :action => "index" end end Thank you, Matthew Margolis blog.mattmargolis.net
2006 Jul 16
7
RJS and Action Renders but page doesn''t update
All, I am trying to perform a simple ajax task and am having some difficulties with the page showing the response. The action performs, but no response on the page. I have found examples on the web and I believe I have copied and pasted exactly what works from the demo site. However, on my system it isn''t finishing. For a simple test, I have limited it down to an alert.
2007 Feb 03
1
How can I bypass caching for some users
...way to do this? Perhaps something like passing a block to caches_action or setting some sort of flag in my authentication method? If this is not possible with action or fragment caching does anyone know of a plug in or other means to accomplish this sort of caching scheme? Thank you, Matthew Margolis blog.mattmargolis.net --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe...
2006 Jul 31
4
RJS to find an element
I''m trying to implement a remove from cart method based on the examples in the second edition Agile book. I have everything working except for the RJS that removes items from the cart. Ideally what I''d like to do is highlight an element that I am deleting only if there is more than one of that particular item in the cart. If the item deleted is the only of
2006 Jul 01
6
Sorting by an attribute on a associated table
So, I have a User has_many :profiles. The most recently dated profile is considered the current one. I need to sort these users by name, but the name attribute is a member of the associated table. Is there any easy way to do this other than with some ugly find_by_sql? Maybe a more general question - is there a common solution to sorting in Ruby? -- Posted via http://www.ruby-forum.com/.
2006 Jun 16
2
[Slightly Off Topic]How to handle downgrades
...confusing for a customer. 3. Don''t allow for downgrades at all. This would make it easier on the developer but would pretty much suck from the customer perspective. What have you all done and what approach would you recommend for an up and coming web application? Thank you, Matthew Margolis blog.mattmargolis.net
2006 Jul 31
3
programmer needed (paying work)
hello, I''m currently looking for a html/css/ajax/rails programmer. if your interested please email neumanc@gmail.com. I have paying work, will pay via check, money order, paypal or credit card. I''m not sure if I can post this here or not. if not, please remove and email me a warning as I did not see any rules on signup. Thanks -- Posted via http://www.ruby-forum.com/.
2006 Jun 14
3
Which Payment Gateway?
...nd. The cut the gateway takes per transaction is also important but I am willing to give a little there in exchange for kick-butt service. Discussion of the perks and negatives of various gateways as well as details about rails payment libraries would also be most helpful. Thank you, Matthew Margolis blog.mattmargolis.net
2007 Feb 14
5
FormTestHelper should change hidden fields
Railsoids: FormTestHelper rules. It tests your response.body form at the same time as it triggers your action, with all the parameters in that form. This obviously improves quality. But it took issue with this: submit_form ''validate_stuff'' do |form| form[''IBhidden''] = ''validate'' end The field IBhidden is a hidden field. To be
2006 Jun 27
2
Capistrano Documentation
Can anyone tell me what was used to create the Capistrano documents by Jamis? http://manuals.rubyonrails.com/read/chapter/97
2007 May 22
4
Process safe log files with multiple mongrels
I have a rails application that runs on multiple mongrels and I would like to make the log files non-interlacing. Are there any logging modifications/other loggers out there that I could use to create process safe logging? Thank you, Matt Margolis
2006 Jun 17
4
ruby script/console fails to launch
Can someone please explain why I am see the following: <snip> rails/uploadimage> ruby script/console Loading development environment. /usr/local/lib/ruby/1.8/irb/completion.rb:10:in `require'': no such file to load -- readline (LoadError) from /usr/local/lib/ruby/1.8/irb/completion.rb:10 from /usr/local/lib/ruby/1.8/irb/init.rb:252:in `load_modules'' from