Displaying 2 results from an estimated 2 matches for "get_thumbnail".
2006 Jul 02
3
difficult view code logic
this one really has me stumped...
<%= user.in_out == "In" ? {image_tag url_for_file_column("personnel",
"image", "thumb")} if user.image : user.in_out %>
What I am wanting to do...
if user.in_out == "In", load their thumbnail if it exists, load
public/images/in.jpg if not, or else load public/images/out.jpg
Can someone help with the
2006 May 12
2
Choosing not to save @session in a given controller or action ?
...values in @session. But the
other instance of ruby was in the middle of the action that return a given
thumbnail. So when it ends, it writes the @session as it read it at its
beginning (with no modification since it doesn?t make any). So the @session
variable is totally broken for my next calls to ?get_thumbnail? because the
@session modification that I thougt I made has been overwritten
Does anybody know if (except if my design is really a bad idea ? ? i.e.
using @session that way) it?s possible, to tell a controller or an action
not to ?close_session? at its end ? (but of course I don?t want to t...