Displaying 2 results from an estimated 2 matches for "view_genre".
2006 Mar 05
1
access methods defined in helper
..._____________________________
Helper id_browser_helper.rb:
module IdBrowserHelper
def table_identities(message)
render_text message
end
end
___________________________________________
Controller id_browser_controller.rb:
class IdBrowserController < ApplicationController
def view_genre()
table_identities(''identities_box'')
end
end
____________________________________________
This is the error message I get:
NoMethodError in Id_browser#view_genre
undefined method `table_identities'' for #<IdBrowserController:0x385add0>
What should I do?...
2006 Mar 05
2
AJAX call chain and DRY questions
...''index'' %>
<div id="genre_id_box">
<%=select(:genre, :id, @genres2)%>
</div>
<%= end_form_tag %>
<%= observe_field("genre[id]",
:frequency => 0.25,
:update => "identities_box",
:url => { :action => :view_genre },
:with => "''genre_id=''+value") %>
<h1>Identiteter</h1>
<div id="identities_box">
<table>
<tr>
<td>Namn</td>
<td>Beskrivning</td>
<td>Bild</td>
</tr>
<% for id...