similar to: using application_helper.rb

Displaying 20 results from an estimated 2000 matches similar to: "using application_helper.rb"

2006 Feb 07
6
Switchtower not working due to openssl not found
I''m struggling to get switchtower working, and from other posts about it I know it has something to do with ruby binding to open ssl. I''m just not sure what I should recompile/reinstall to get things to work. running: "rake remote_exec ACTION=setup" gives me ---> ...executing "mkdir -p -m 775 /usr/apps/hello-rails/releases /usr/apps/hello-rails/shared/system
2006 Mar 23
2
Ruby and RoR Book Roundup
Hello, I''m a big bookworm, so I decided to round up all the upcoming Ruby books in the market in one big blog post. At my count, there are _sixteen_ books to be released (in print) for the upcoming year, with some available in pdf form right now. Here''s the list: http://www.robsanheim.com/2006/03/23/ruby-and-ruby-on-rails-book-roundup/ Hope its helpful for fellow book nerds
2006 Jun 26
2
RailsConf DVD ?
Hi All, I saw spurious mentions on a few blogs of a DVD being made available of RailsConf presentations. However none seemed to have a who/what/when/where attached to them, thus might just be pure speculation. Anyone know of an official source/effort being made for a DVD? Would be well keen for copy if one is to be made available.... Cheers Rowan --- http://raili.st/ -------------- next part
2006 Jan 31
1
question on gem update rails effect on fcgi/mysql bindings
Would upgrading rails and all dependancies break the installation of the fcgi/mysql bindings? I know I had all this stuff working a month ago or so, but since then I''ve updated a few times... - Rob -- http://www.robsanheim.com/ - blog on java, rails, tdd, agility, and life in general http://www.ajaxian.com/ - the net''s premier ajax blog
2006 Jul 24
4
List etiquette question
I''ve written a little ruby/rails hangman-ish app to keep my wife occupied at work that I think list members might also find interesting. I''m new to this list so I wanted to see if it would be considered bad form to post the link before I did. There aren''t any ads so I''m not getting anything out of more visitors, but I still didn''t want to take the
2005 Jul 22
3
testing application_helper.rb
I am trying to run some functional (or are they unit?) tests on my application_helper.rb. So far, I''ve not had any success in being able to call the methods defined in application_helper.rb. Here is my app/test/functional/helpers.rb require File.dirname(__FILE__) + ''/../test_helper'' require File.dirname(__FILE__) +
2007 Jan 07
3
slow tests on an established project...
Hi all Hope this isn''t too far off-topic on this list, as I think it would largely go ignored on the main rails list. I''m looking for the most pragmatic way to speed up our test suite. This is on an established project, and lets just say that we used way too many fixtures when we started =). For example: Finished in 128.870144 seconds. =============== 392 tests, 2106
2006 Nov 27
2
ActionMailer & application_helper.rb
Hi, I''m trying to send some emails with the same formatting as my pages & I can''t seem to access my display routines in application_helper.rb. I''m trying a hack to bypass this. At the top of my ActionMailer notifier script I''ve included application_helper.rb - my understanding is that this should arrive as a module and should be able to be used
2005 Dec 19
1
Application.rb / Application_Helper.rb / DRY help
Hi all, I have defined the following method in both application.rb and application_helper.rb: def still_logged_in? !session[:user_id].nil? end This method is called in a before_filter in my application.rb, as well as in my layout/application.rhtml and view/user/login.rhtml (for showing a login / logout button, etc.) I had to put it both places, otherwise I would get an
2006 Jul 06
1
migrations work from script/console, but not command line
Having a weird issue where I can migration to version 1, but then go no further, and cannot go back to 0 -- but only from the command line. If I open up script/console I can do migrations just fine - down to 0 or up to 2, via ActiveRecord::Migrator. So I know the migrations must be valid, and I can verify that tables are created or destroyed in the database. Does anyone have any idea why this
2005 Aug 16
1
Best way to access constants in application_helper.rb from views?
Hi, I''m using the application_helper.rb file to create some useful functions for generating links by name. I understand that functions defined in this file are available to all views, but what about constants defined in that module? Is there a best practice approach for doing this other than accessing each constant via ApplicationHelper::FOO? Stu
2006 Mar 01
4
another select_list question - bad bad booleans
I have a select list for a boolean column in postgresql in the ''model'' ... YES_NO = [ [ "Yes", "1" ], [ "No", "0" ] ].freeze in the ''view code'' ... <%= options = [[''Accepted?'', '''']] + Placement::YES_NO select("placement", "accepted",
2006 Jun 29
9
Handling multiple developers making migrations and using svn
Hey all, I''ve run into an interesting scenario that I think some of you might have some suggestions on. I am currently working on a RoR project and we are making full use of the migrations. We are also using a subversion repository for our source control. Now, the problem.... We are both making migrations and checking them into SVN. So, if in our checkout we have migrations up to 10 and
2007 Jan 02
4
allow stubbing of previously defined methods such as "id"
On my current project I needed to create a stub that responded correctly to the id message. Here''s the change I put into my copy of head. Index: lib/mocha/mock_methods.rb =================================================================== --- lib/mocha/mock_methods.rb (revision 1114) +++ lib/mocha/mock_methods.rb (working copy) @@ -68,6 +68,7 @@ method_names =
2006 Mar 04
2
application_helper can "include" another helper ?
My "application_helper.rb" become to large. I have basic functions that I use for all projects. Is it possible to define thoses functions inside an external "basic_helper.rb" and include it in "application_helper.rb" ?
2006 Jul 13
2
Intel Mac, Rails, MYSQL - access denied
Hi, Nuby on Rails here trying to bring up an existing app on a new installation. The whole ruby/rails/mysql/lighty installation was done per the much touted "hivelogic article" that runs through all the steps. I am running into a permission error when I try to do a rake migrate to set up a session database needed by this existing app. Extracted from the trace... ** Execute
2006 Mar 16
1
application_helper.rb vs application.rb
I find that I want to put the same methods into both of these files. Whats the best way to get away with a single implemenation? Gareth -- Posted via http://www.ruby-forum.com/.
2006 Jun 07
0
Problem with file_column plugin path and application_helper.rb
Hello, I upgraded my Rails app from 1.0 to 1.1.2. Basically everything worked on my development box. When I uploaded the changes (including the frozen 1.1.2 gems) to my webhost most things worked. However I had a problem with my application_helper.rb file. It wasn''t able to find the url_for_image_column method from the file_column plugin. Here''s the relevant code in
2006 Feb 26
0
ActionMailer view templates don''t pick up application_helper.rb?
It seems that helper methods defined in application_helper.rb aren''t available in ActionMailer views. Is that intentional? -- - Adam ** Expert Technical Project and Business Management **** System Performance Analysis and Architecture ****** [ http://www.everylastounce.com ] [ http://www.aquick.org/blog ] ............ Blog [ http://www.adamfields.com/resume.html ].. Experience [
2010 Nov 29
0
[TDD] [Rails] - Rspec test for application_helper.rb fails when trying to access application_controller method.
In a method named logo in my application helper, I reference an application controller method (current_account) that has been marked as a helper method with the following syntax: helper_method :current_account When I test out the setup in the browser (without rspec), rails is happy with this setup. However, when I run the spec, the spec won''t pass and gives me the following error: