similar to: hide_action doesnot hide view

Displaying 20 results from an estimated 200 matches similar to: "hide_action doesnot hide view"

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/.
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 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
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
2010 Oct 23
7
Dial plan help
Hi, I am facing issue while generating a dial plan for the following case: all caller should be asked a code to enter than All the callers should be connected one extension. also tell me testing scenario : I have pbx setup and currently I have soft phones to use as extension. Currently I have created a dial plan using vdp I tried submitting it here but I don't know how to extract text
2013 Jul 23
1
Postgres adapter misconfigured on Linux?
I''ve written a simple Rails migration that adds an index to an existing Postgres table: class AddIndexToEvents < ActiveRecord::Migration > def change > add_index :sf_events, :account_id > end > end However, when I run the migration, it fails due to a syntax error on the CREATE INDEX line. I''m expecting some SQL like this to be generated: CREATE INDEX
2010 Oct 21
8
Dial Plan Conf
Here I am expecting to be configured following scenario: User calls : it will play a sound will ask for input DTMF, then call will be given to particular extension for any DTMF entered. But its not working as expected. I have attached the dial plan file. -------------- next part -------------- An HTML attachment was scrubbed... URL:
2010 Oct 14
5
How to connect asterisk PBX to PSTN
Hello community, I have successfully set up asterisk free PBX server and I am also able to connect to it by softphone. Now as next step I want to extend this to PSTN , My Required scenario: I need a number which will connect outside PSTN world to my PBX and by applying extension particular softphone or connected normal phone should get connected. Which hardware I need for it. Also please
2011 Feb 18
1
Rails plugins new official maintainers
Hey guys, This is the final list of the new maintainers of each plugin. We need two more things to do: First please the owners of the repos add the rest of the maintainers. Second I will add a note on each rails/plugin mentioning this repos updates. So from now on, if someone else is interested in helping/contributing please send a message to the appropriate repo owner. verification
2006 May 21
6
Is there a way to call helper methods in a controller?
Hi, Is there a way to call helper methods in a controller? I want to do something like this in my controller Class MyController < Action.... def my_method string = link_to "some_url", :controller => "home", :action => "command" end end link_to is an ActionView helper method and it seems that I couldn''t access the method in the controller
2006 Jun 24
3
Performance vs normalization best practice
I have a common situation and would like best practice suggestions from some of you more experienced rails developers. In my DB I''ve normalized tables in a traditional manner, e.g. I have Posts which have authors stored in a Users table. My problem is when I go to show a list of Posts and I want to display the author name (e.g. post.author.name) ActiveRecord appears to do a SELECT
2006 Jan 06
4
"Selecting" a calculated row / Using :select in the paginate method
Hi, I was trying to use the :select parameter to select a calculated row, but it appears that the parameter is not picked up by the paginate method. I want to add the following to the select statement: timediff(now(), created_on) as age So I tried: @story_pages, @stories = paginate :stories, {:per_page => 10, :include => ''user'', :select =>
2006 Feb 07
17
Easy way of dealing with nil properties in templates?
Is there an easy way to deal with nil properties in templates? All I''m aware of are these methods, and it''s quite tedious and surely violates DRY. <%= @member.name unless @member.name.nil? %> <%= @member.name.to_is %> <%= "#{@member.name}" %> csn __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the
2006 Apr 25
2
Bug in Rails 1.1 implementation of before_filters
I just spent a few hours tracking down a bug in Rails 1.1, so I thought I''d post the issue and a workaround just in case anyone else hits it. I designed a security enhancement so that controller methods can be protected by preceding them with a role. The standard Ruby method_added() callback is used to detect when controller methods are added, and then I manipulate the
2007 Jun 27
5
Filter Ordering in Edge Rails (Rev 7143)
Filter chaining appears to behave in differently than Rails 1.2.x. It seems that I''m getting a lot of errors along the lines of: ActionController::ActionControllerError: filter #<ActionController::Filters::ClassMethods::BeforeFilterProxy:0x322f468 @filter=#<ActionController::Filters::ClassMethods::SymbolFilter: 0x322f4b8 @filter=:login_required>> was in the wrong place!
2006 Jan 04
7
<% if ... -%> What is this?
I seen some RoR code that went like this: <% if ...blah, blah... -%> .. blah, blah <% end -%> What are the minus signs for in the if statement? Cannot seem to find anything about this, and searching on "-" in this context is hard to get anything meaningfull back. Thanks, - Mark -- Posted via http://www.ruby-forum.com/.
2005 Dec 30
6
call a method once per page request
Hi, I''m wondering if there is a simple solution to call a method once per page request. I tried to place my call in a before_filter in ApplicationController but it''d called a second time if I use render_component from a view. Seems to me that a hook should be added in Dispatcher#prepare_application. Context: working on i18n, I''m trying to check lang either from uri,
2006 Jul 15
3
Why app/helpers are not app/view/helpers ?
So that we can write controller code inside helpers ? are we supposed to do that ? -Pratik -- rm -rf / 2>/dev/null - http://null.in "Things do not happen. Things are made to happen." - JFK
2006 Feb 07
2
Checking for nil in views
Hello, Is there a better way to do the following in a view? <td>Manufacturer <td><%= @equipment.manufacturer.name unless @equipment.manufacturer.nil? %> -- Posted via http://www.ruby-forum.com/.
2006 Jan 13
4
Flash not cleared with ActiveRecord session store
Cheers, I''ve stumbled over a bug with 1.0 and ActiveRecord store for session while migrating from pstore sessions. I created the table with `rake create_sessions_table` and set `config.action_controller.session_store = :active_record_store` in environment.rb. Everything runs fine except that the flash messages will not be cleared. I get the same message everytime on everypage I