search for: romeu

Displaying 6 results from an estimated 6 matches for "romeu".

Did you mean: tomeu
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
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 17
3
How to save output "render :action=>:any_action" to a file?
I need to save the output of my rails app to a file. i.e. instead of rendering a page when using "render :action=>:any_action" i want the output to be saved to a file. Anyone got any ideas? Thanks Chris -- Posted via http://www.ruby-forum.com/.
2006 Aug 09
3
select with country names
Hi, I need to create a list of coutries in a driop down. I''m aware of a function ''country_options_for_select'' however this jsut seems to output a string of all countires. How can I get this list in a drop down? Thanks scott -- Posted via http://www.ruby-forum.com/.
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
2006 Aug 10
6
passing hash from controller to view and pluralization?
hi, i have 2 tables (counties and towns). counties has_many towns and towns belong_to counties. now my question: i thought i would need to do is say @counties = Counties.find(:all). should that not return to me all counties in the counties table WITH all towns associated with each county? in my view i was getting error when doing this if(counties.has_towns?) saying undefined has_towns