Displaying 3 results from an estimated 3 matches for "capparelli".
2006 Aug 08
5
off topic: running non-ruby programs through command line
Hi all,
Slightly OT, but is there any way to run command-line programs through Ruby?
I have a rails web application that performs some database work. After a
certain action is performed, the rails app should then call a java program
that performs additional work to our mainframe. This is under Win 2003
Server.
Any ideas?
Thanks,
Jin Lee
-------------- next part --------------
An HTML attachment
2006 Aug 11
5
Why does no one like render_component?
Maybe I''m missing the point?
Lets take for example albums of pictures. If I have a scaffold for
each, and I''m showing an album, what if I want to list all of the
pictures that are in the album?
Surely, I''d want to call the List action in the picture controller.
render_component would do this perfectly. But we''re told not to use
render_component. So
2006 Aug 08
11
Newb question- method not working
I know this shouldn''t be in the view but to test the code it is.
Anyway if I do just session[user] I get back the user id (the id from
the user table)
which is good.
However this code does not work.
<% a = session[:user] %>
<% uname = User.find(:first, :conditions => id = a) %>
<%= @uname %>
TIA
Stuart