similar to: Test ActionView Helper...

Displaying 20 results from an estimated 10000 matches similar to: "Test ActionView Helper..."

2006 Jan 05
1
Ruby on Rails Workshop in Graz, Austria
http://sg.validcode.at/articles/2006/01/03/ruby-on-rails-get-started The first austrian ?Ruby on Rails? Workshop takes place on the 21st and the 22nd of January in Graz, Austria. What are you going to learn? * What is Ruby on Rails * How do i build a Web Application with it These are the imporant points, but these include many things. You also get a CD with a bunch of Software,
2006 May 09
2
newbie: OSX Ruby/MySQL issue?
I''m three pages into the OnLamp RoR Tutorial [1] and am wrestling with what appears to be a MySQL connection problem. I''ve created a simple controller called "recipe" with a corresponding "recipes" mysql table. The recipe controller is just a simple scaffold. When I browse to "recipe/new", though, I get these errors: == NoMethodError in
2011 Nov 24
2
This is not the error: ActionView::MissingTemplate
Hey everyone, I am getting the following error: Started POST "/rubyamf/gateway" for 127.0.0.1 at 2011-11-24 16:27:20 +1300 Processing by RubyamfController#gateway as */* Processing by ProjectsController#templates as */* ←[1m←[36mProject Load (1.0ms)←[0m ←[1mSELECT `projects`.* FROM `projects` ←[0 m Completed 200 OK in 34ms (Views: 3.0ms | ActiveRecord: 28.0ms) Completed 500
2013 Feb 28
1
Make `ActionView::Helpers::InstanceTag#tag_id`, `ActionView::Helpers::InstanceTag#tag_id_with_index(index)` public?
As I asked in StackOverflow<http://stackoverflow.com/questions/15127658/hoe-to-get-tag-id-from-a-record-in-form-for/15129741> I think it would be helpful since we can dynamically create javascript code to control each input tag in form helper, what do you think? Or there has already been a solution? -- You received this message because you are subscribed to the Google Groups "Ruby
2006 Sep 04
1
Overriding ActionView::Helpers::InstanceTag::DEFAULT_TEXT_AREA_OPTIONS
What is the best way to override some of the FormHelper default options? Right now I''m adding this to the beginning of my environment.rb: ActionView::Helpers::InstanceTag::DEFAULT_TEXT_AREA_OPTIONS = { "cols" => 80, "rows" => 5 } Is that the way it''s supposed to be done? --~--~---------~--~----~------------~-------~--~----~ You received this message
2006 Feb 10
2
How do I test actionview helpers in the console?
I would like to see the output of actionview helper methods, to be able to play with it. When I do the following in the console: collection_select("job", "client_id" , @clients, "id", "name") I get: NoMethodError: undefined method `collection_select'' for #<Object:0xb7cf1970> I''d like to get something like: <select
2008 Mar 06
1
Unitialized constant ActionView::Helpers::TagHelper::Set
Hi all, I write the following test to a simple plugin require ''rubygems'' require ''test/unit'' require File.dirname(__FILE__) + ''/../lib/meta_tags'' require ''action_view/helpers/tag_helper'' class MetaTagsTest < Test::Unit::TestCase include MetaTagHelper include ActionView::Helpers::TagHelper .
2006 May 19
1
how to access ActionView::Helpers::JavaScriptHelper::escape_javascript in a model (a newbie question)
Hi all, Please forgive me for this newbie question. But I really want to know how how to access ActionView::Helpers::JavaScriptHelper::escape_javascript method in a model. I can access this method in view, but when call it in the model, it ends up with undefined method. It seems to me they are in different scope. So what''s the best way to access view helper methods in model. --
2005 Dec 19
0
ActionView::Helpers::FormHelper.text_field
Hi, Is it possible to use the ActionView::Helpers::FormHelper.text_field with an instance variable instead of a model. e.g. In the controller: def meth @value = ''hi there'' end In view: <%= text_field ''value'', nil %> It doesn''t work with what is above (doesn''t like the nil) and produces very strange results replacing nil with
2010 Oct 15
2
include ActionView::Helpers in Rails 3?
How do you do the equivalent of: module MyLibrary include ActionView::Helpers::AssetTagHelper end ...in Rails 3? I''m trying to upgrade my app from 2.3.9 to 3.0.1 and I have some stuff in /lib that needs to include these helpers from ActionView. It works fine in 2.3.x, but in 3.x it''s giving me the error: undefined local variable or method `config'' One of the
2009 Sep 14
0
markdown call prompts "uninitialized constant ActionView::Helpers::TextHelper::Markdown" in upgraded application
Hey All, I''m attempting to upgrade my app from rails 2.0.2 to 2.3.3. One bit that''s failing is this call here (in /views/projects/show.html.erb) <%= markdown(@project.description) %> That earns me a: uninitialized constant ActionView::Helpers::TextHelper::Markdown On that line. I''m on a rebuilt machine (windows xp, ruby 1.8.6) so I thought it was a
2012 Sep 03
0
time_zone_options_for_select method in ActionView::Helpers is not DST aware
We are using time_zone_options_for_select for the letting the user to select the timezone to assign to an object. But we are having trouble because currently we are on DST period, so in utc -5 but the list is showing utc-6 (the normal offset) As per usage suggested in this issue: https://github.com/rails/rails/issues/7297. I wrote a custom method to solve this temporarily:
2007 Nov 16
0
ActionView::Helpers::SanitizeHelper.sanitize docs
Hello, First sentence of sanitize() method doc says: "This sanitize helper will html encode all tags and strip all attributes that aren''t specifically allowed." But sanitize("<h1>foo</h1> <bar>should html encode</bar>") == "<h1>foo</h1> should html encode". Shouldn''t it html encode <bar> to
2007 Jan 24
0
ActionView::Helpers::InstanceTag#to_date_tag help
I''m trying to read through the code, hoping to find a way to custom style select boxes for a date_select and can''t figure out this code. Any help appreciated: <code> def to_date_tag() defaults = DEFAULT_DATE_OPTIONS.dup date = value(object) || Date.today options = Proc.new { |position| defaults.merge(:prefix =>
2005 May 17
2
Noob - ActionView::Helpers::FormOptionsHelper::select
Hi, I''m just starting with Rails and i''m trying to do something like this: <%= start_form_tag :action => ''add_user'', :id => @social_event_group %> <%= select ''user'', ''id'' , User.find_all.collect {|u| [ u.login, u.id ] }%></p> <%= submit_tag "Add User" %> <%= end_form_tag %>
2006 Apr 08
2
ActionView::Helpers::FormHelper instance methods should take an object reference rather than an object_name.
Hi ActionView::Helpers::FormHelper methods (e.g. #text_field, #check_box...) take object_name as an argument. From this argument they infer a name that is supposed to contains the reference to the relevant object. I can''t see why the FormHelper methods were designed that way. Compared to simply passing them a reference, the current way seems too complicated and an invitation to problems
2006 Feb 09
2
#3775 - testing helpers which use ActionView methods
http://dev.rubyonrails.org/ticket/3775 I''m hoping someone will pop up and tell me I''m simply daft with this ticket (and queries on IRC, and a prior post to the main Rails list), but I can''t get a peep out of anyone so far. The question is, how do I write a simple test for a helper method which calls ActionView methods itself. E.g., a foo_link() helper which calls
2009 Apr 09
4
uninitialized constant ActionView::Helpers::AssetTagHelper
Hi All, I just wiped out my hard drive, did a fresh install of os x 10.5, and upgraded to rails 2.3.2. i installed the mysql pkg for os x, and created the databases i needed for the project i was working on before the upgrade. However when i run rake db:migrate to run my migrations i get this error uninitialized constant ActionView::Helpers::AssetTagHelper I''ve found some stuff about
2011 Mar 20
2
"no such file to load -- dispatcher (LoadError)" on starting mongrel process
After I updated to Rails 3.0, I encountered the following error on booting mongrel process. Can anyone advise? Thank you. ** Starting Mongrel listening at 0.0.0.0:3000 ** Starting Rails with development environment... /Library/Ruby/Gems/1.8/gems/activesupport-3.0.4/lib/active_support/ dependencies.rb:239:in `require'': no such file to load -- dispatcher (LoadError) from
2006 Jan 04
0
Ruby on Rails - Get Started
The first austrian ?Ruby on Rails? Workshop takes place on the 21st and the 22nd of January in Graz, Austria. What are you going to learn? * What is Ruby on Rails * How do i build a Web Application with it These are the imporant points, but these include many things. You also get a CD with a bunch of Software, for a good start and a copy of the workshop material What should i