Displaying 2 results from an estimated 2 matches for "portfoliocontrol".
2006 Mar 12
1
a better way to alias methods
Hi is there a better way to accomplish this task?
class PortfolioController < ProjectController
layout ''portfolio''
def boing
redirect_to :action=>:index
end
alias_method :new , :boing
alias_method :destroy , :boing
alias_method :edit , :boing
alias_method :update , :boing
end
My portfolio contro...
2006 Feb 09
6
troubleshooting an observe_field
Hi,
I''ve got a live_search field in a partial that is on several different
pages. On all pages, except 1, it works fine. On the page it doesn''t work
on, it seems it never executes it action.
Here''s my observe_field code inside the partial:
<h1><label for="searchtext">Live Search:</label></h1>
<%= text_field_tag :searchtext