Displaying 20 results from an estimated 37 matches for "mattmargoli".
Did you mean:
mattmargolis
2006 Jul 22
5
Prototype error. replace content inside a <TR> in IE
...quest/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
...t that 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
...ts_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 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 20
2
Validation error_messages_for problem
...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
2007 Feb 03
1
How can I bypass caching for some users
...? 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 from this group,...
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.
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 Jun 19
6
SQL Search Qustion
...ch
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
2007 Sep 21
3
Standardize environment between specs containing class defs
I have some specs that involve the use of eval and class definitions to
test code generation. I want to always start with a clean slate so none
of my tests fail or succeed incorrectly due to artifacts left over from
previous specs.
Example of my situation
Spec 1 defines
class Fish
class Cod < Fish
Spec 2 defines
class Animal
class Cod < Animal
In this situation the
2006 Jul 31
3
date_select for valid days only. No Feb 30
...an lead to invalid date entries for scheduling.
I am thinking that an approach where I have a drop down for month and
then use AJAX or normal client side javascript to update a day drop down
is the way to do things. Has anyone released any code that does this?
Thank you,
Matthew Margolis
blog.mattmargolis.net
2006 Jun 23
2
Queue 3 or more RJS actions
...es/effect/queue/
It talks about using :scope with :queue. I tried changing all the
:queue in the above example to :queue => {:scope=> ''myscope''}
hoping that this would set up my queue but that did not appear to work.
Any help is greatly appreciated.
Matthew Margolis
blog.mattmargolis.net
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
2006 Jun 23
10
Don''t un-admin the last administrator
...n 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
2006 Jul 17
5
Keeping attributes of two models in sync
Hi,
I have a Product and a corresponding Keyword (1:1 via belongs_to and
has_one). I want to ensure, that two attributes (:name) of the two
models alway stay in sync. What''s the easiest way to accomplish that?
I did play around with before_/after_save hooks and with
AR::Observers but in the end I''d always get infinite recursion...
Thanks,
Timo
2006 Jun 14
3
Which Payment Gateway?
...he
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
2006 Jun 25
3
Working alone on a webapp
Do you design first the develop? Develop first then design? Do both
simultaneously?
Just curious, because I''m working on a site right now doing a little of both
at the same time.
--
Matt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060625/81423f85/attachment.html
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
2006 Jul 15
2
Render -> ActionController -> Render -> ...
Hi Guys,
ActiveRecord is great for being able to drill down through many tables.
I often locate the very "top" record, and have a render :action =>
"show" display that top record.
Often I want to drill down like:
@kingdom.phylums.classes.orders.each do |order|
render :partial => "order/show"
end
But, depending on the user who is logged in, they see a
2006 Jul 02
3
2 before_filters, only want one to render something
...> "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