search for: gosar

Displaying 7 results from an estimated 7 matches for "gosar".

Did you mean: gosa
2006 Jan 22
9
ERROR: undefined method `h'' for ERB::Util:Module
ERROR: undefined method `h'' for ERB::Util:Module i get above error when i use ERB::Util.h(content) in my controller''s action. can any one one tell me how to use this ''h'' method within controller? thanks, Jigar Gosar http://jigar.org -- Posted via http://www.ruby-forum.com/.
2007 Aug 25
5
How do I assign default values to model attribute
I have a model with a attribute named "code". Every time i create an instance I want the "code" to be initialized by making a call to "generate_code" method. How do i initialize model attributes in rails ?? thanks for help. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are
2006 Jan 14
4
hide_action doesnot hide view
The view file (eg. apps/views/items/list.rhrml) is still displayed even when the action is hidden (hide_action :list). How can I hide view file form being automatically displayed in this circumstance? thanks, jigar -- Posted via http://www.ruby-forum.com/.
2006 Jun 01
3
rake create_sessions_table, does not create session table
when i run rake create_sessions_table, I get following output. tables donot get created and my application doesnot start. (in G:/rubysrc/blog) create db/migrate create db/migrate/001_add_sessions.rb info: the first time ran take everyting was fine, but now i have reinstalled ruby and rails and created the database, but i am unable to create session table with rake, please help.
2007 Jun 24
1
Cant test 404 pages in webrick
I tried running webrick in production mode with -e production option. I changed development database name so as to make sure webrick was running in production mode. Now I wanted to test my new 404.html page so I typed an invalid URL, I still get some routing error instead of my 404.html page. Why is this happening with webrick in production. I haven''t even changed any of the environment
2006 Feb 05
0
How can i specify default time to datetime_select tag
I want to specify a different default time to datetime_select tag how can i do that. also i was looking at rails helper code ----------------------------------------------------------------------- module ActionView module Helpers module DateHelper def to_datetime_select_tag(options = {}) defaults = { :discard_type => true } options = defaults.merge(options)
2006 Feb 05
0
Session FileStore directory
how can i specify a different directory to store sessions (default is /tmp/). my problem is that i am running multiple rails application and whenever i login in one application, i automatcally get logged in another application, because the session is sharded, so i want to specify a different session store directory per rails app. How can i do that? -- Posted via http://www.ruby-forum.com/.