Hello, please tell me how you can pass the parameter via link_to. Found here on the site examples, but I did not. The task is as follows: There is a calendar, there are links to sessions with the specified session time:
<% session_time = SessionTime.find(id = @time_id).session_time %> <li><%= link_to session_time, film_session, { :session_time => session_time } %></li> In the controller I catch:
@session_time = params[:session_time] But if I try to display the parameter value in the console, I get an empty string.
session_time? - D-side