similar to: html.erb and textmate. Cant get snippets to work.

Displaying 20 results from an estimated 10000 matches similar to: "html.erb and textmate. Cant get snippets to work."

2010 Jun 24
0
Rails3: render_to_string of a .html.erb when request is a json request raises MissingTemplate error
I''ve the following situation (which actually works in Rails 2.3.8 and this is a result of the migration of our app to rails3): I have a partial which is rendered a few times (imagine tr''s in a table). On the clientside there''s a script that does a json request for a specific row (jQuery + ajax dataType: ''json'' and type: ''POST'') In
2006 Jan 08
1
How to insert snippets in textmate from the keyboard
I see an abbreviation in the menu called lia but how do I make it work. I have tried a fascinatingly large number of possibilities without success. I have searched the help file and googled the issue. bruce
2006 Jul 26
1
mixing ebr and builder together and having it render as html in the browser
The first problem is that if you make a builder or .rxml file it always displays as xml in a browser. declare! it and the browser gives and error and if you change rxml to rhtml then it thinks you should be making erb. SO quetion #1 is how do I make builder files render in the browser as html. The next thing that I want to be able to do is be able to render parcials or call other files of other
2005 Mar 07
2
erb and builder in same view ....
Has anyone tried using erb and builder in the same file? Either .rxml or .rhtml? I''m wanting to do some think like the following: xml.div(''id''=>''menu'') {|xml| link_to "create race", :controller=>"derby", :action=>"new" } Thanks, -- Tom. -- "Nothing will ever be attempted, if all possible objections must
2006 Mar 12
0
ERB and Builder template engines shouldn''t be so heavily wired in ActionView::Base
Problem: 1. ERB and Builder template engines are heavily wired in ActionView::Base 2. Should be optional. If we use different engine - why load all their stuff if not needed? 3. There are template engines which expect files in their own locations and cache them in their own way. For instance a template engine may store templates in a database. These engines don''t need any central source
2007 Sep 29
1
templates with same name before extension are cached
Hi all, I was just wondering if this is the intended behavior. Here is my setup: controller def index respond_to do |f| f.xml { render :xml => true } f.html { render :layout => :none } end end In my views I have a file for each type index.herb index.xerb The first request I send is cached and interferes with the other one. For example, if I send an xml request
2010 Nov 04
0
Re: Train wreck getting render_to_string to work from foreign controller [SOLVED]
Just for collective knowledge as I have found no info on this problem online: I solved this by adding an .html.erb file for the "missing template", since by design or bug Rails3 will not find or render another controllers view (in my experience). Then in the new html.erb file, I just put <%= render "comparisons/display" %> because the views *are* able to find templates
2008 Jul 23
2
difference between html.hi to evererb &rhtml
hi to everyone whats the difference between html.erb & rhtml -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this
2008 Dec 20
4
Accessing rails helpers when processing erb snippets
I need to be able to merge a lot of content for web pages, along with links to other pages taken from a list of categories. The text that goes with each category can be different depending on the context that it''s displayed in. I could do this by having a whole stack of *.html.erb files which hold the static content and access the Rails helpers to pull in stuff from the database and
2006 Jul 05
0
MasterView rails-optimized (x)html friendly template engine - Release 0.2.3
MasterView is a rails-optimized (x)html friendly template engine plugin that provides another option to the existing rails view templates (rhtml and rxml). The main idea is to provide a template engine that would provide all the power of layouts, partials, and rails helpers but still be editable/styleable in a WYSIWYG editor. It was also a major goal that the syntax of these attribute directives
2008 Mar 21
0
Info: _flash.html.erb partial a bad idea
I guess a partial creates a variable by the same name. I wrote a simple partial called _flash.html.erb in which I display the flash errors and warnings. But, inside that partial, flash was defined but set to nil. Renaming the partial to _display_flash.html.erb resolved the issue. HTH pedz -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You
2008 Apr 12
1
index.html.erb
Hi Everyone, A newbie question, I have my subdomain pointing to th respective app/views folder however the browser does not default to the index.html.erb , so instead I just have file listing. When I click on the index.html.erb it does work fine. What do I need to do to get it to work so it automatically load when a user goes to that view folder. Thanks in advance Using ROR 2.2 -- Posted
2006 Apr 26
2
MASC = A New Way to Use Textmate Snippets
Just thought I''d announce this on the Rails list since I know several of you use Textmate: there''s a new feature I''m calling "Multiple Arbitrary Simultaneous Carets" or MASC for short, which is available in my personal TM bundle. It''s been handy enough for me that I thought others might enjoy it.
2007 Jun 03
3
.html.erb
Today I did some updates, rails, and gems update, the problem is that now, insted of .rhtml files I get html.erb, it looks that they work the same, but, I''m using radrails, and It''s not doing the color syntax is there anyway to fix this? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are
2012 Feb 15
0
How to indent .html.erb files in sublime text 2?
Hi all, I''m now using Sublime Text 2 and it''s pretty awesome The only problem is that it has no indent support for .html.erb file type, any one here using this editor can tell me how to solve this problem? Thank you -- Keep It Simple Stupid Twitter: @ghosTM55 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
2010 May 28
1
problems with render in store.html.erb
Working on Agile web development with rails, 3rd edition. Every time I put <%= render(:partial => "cart" , :object => @cart) %> in store.html.erb, it makes a "</div>" disappear(well, it doesn''t show up when I check with firebug). When I take this piece of code out, the display returns to normal. I also tried moving it to the end of the page
2007 Dec 12
0
Alternate file jump in Textmate
Hello all, Using RSpec 1.1 RC from the SVN source. Running in Textmate with the bundle, all working good. Got a problem with the Alternate File jump (Ctl Shift DownArrow) because it works fine in Rails with the html.erb templates, but I can not figure out how to get it working with HAML templates that I am using. For ref, my specs are called: spec/views/users/edit.html.haml_spec.rb For the
2010 Sep 15
5
Hide an image in show.html.erb
I have the following "show.html.erb" script, and I get as an output TWO images since I use a method to draw an image. How can I HIDE the RESOURCE image? Thanks. Here is the script: <canvas id="line" height="512" width="512"> </canvas> <p id="notice"><%= notice %></p> <p> <b> Name </b> <%=
2011 Mar 04
1
How to modify the template path for ActionMailer used in a Ruby script ?
I am testing a ruby 1.9.2 script (it''ll be run in a cron task later...) in which I am trying to use ActionMailer All my files are in a single folder ''joinus_email - joinus_email joinus_email.rb notifier.rb - notifications joinus_email.html.erb joinus_email.text.erb running the script joinus_email.rb, (in which I defined the
2006 Jul 04
0
[OT] TextMate snippet is not working
Sorry for the OT. Since I know that in this mailing list there are people that use TextMate heavily, I''ll try asking here first. I downloaded TextMate 1.5.2. Installed it on Mac OS X 10.4.6 running on a MacBook Pro. I recalled that I could do a Command+Option+Shift +Down in an action and TextMate will show a context menu that let me jump to the view, functional test, etc. A day