Displaying 20 results from an estimated 20000 matches similar to: "How to indent .html.erb files in sublime text 2?"
2015 Oct 05
2
Fwd: Sublime Text License Key
The company making sublime text gets few thousands of dollars of notional
loss :)
On Oct 5, 2015 8:45 PM, "Steve Howes" <steve-lists at geekinter.net> wrote:
> Wonder what happens when an entire mailing list tries to use that key?...
>
> On 05/10/15 15:28, Optical Phoenix wrote:
>
> ---------- Forwarded message ----------
> From: *Sublime HQ Pty Ltd* <sales at
2013 Mar 22
0
Debug ruby in sublime text 2
Is there are plugins for debug direct in sublime text? For example i
founded for php in sublime text -
https://github.com/Kindari/SublimeXdebug. What about ruby?
--
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 unsubscribe from this group and stop receiving emails from it, send an
2015 Oct 05
2
Fwd: Sublime Text License Key
---------- Forwarded message ----------
From: *Sublime HQ Pty Ltd* <sales at sublimetext.com>
Date: Wednesday, July 25, 2012
Subject: Sublime Text License Key
To: "opticalphoenix at gmail.com" <opticalphoenix at gmail.com>
Hello,
Thanks for purchasing a copy of Sublime Text! Your license key is:
----- BEGIN LICENSE -----
Dennis Wright Jr
Single User License
EA7E-819939
2011 Nov 06
1
Sublime Text Editor
Finally, a decent TextMate like Multi-platform (including Windows)
Editor.
It is the Sublime Text Editor
http://www.sublimetext.com/
Take a look!
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this
2007 Jul 22
1
html.erb and textmate. Cant get snippets to work.
Hello!
I moved to html.erb but the snippets fail to work.
eg
.rhtml
lia(tab) gives me link_to
.html.erb
lia with a tab after it =)
I have tried the comment suggested here:
http://ryandaigle.com/articles/2007/2/21/what-s-new-in-edge-rails-rhtml-and-rxml-to-die-a-slow-and-painful-death
David Demaree:
"
1. Select Bundles > Bundle Editor > Edit Languages... from the menu bar.
2. Find
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
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
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
2011 Jul 07
0
Rails3 Mailer html / text versions order
I am sending the emails as per the documentation order : html /
text
but users are receiving the text version first and not the html ( need
to switch to an alternative version ..)
I guess I missed a point but which one ?
thanks for your help
RAILS DOC ========
class UserMailer < ActionMailer::Base
default :from => "notifications-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org"
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>
<%=
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
2009 Aug 05
6
No way to indent text?
How could one indent (not quote) a block of text?
This is commonly done in Wikipedia with one or more colons at the
beginning of the line, and is very handy for threaded discussions.
An example is at
http://en.wikipedia.org/w/index.php?title=Wikipedia:Articles_for_deletion/MojoMojo&diff=next&oldid=275101911
--
Dan Dascalescu
http://wiki.dandascalescu.com
2011 Feb 17
16
Unindent ERB output
Hi all,
I''d like to unindent a block of ERB specifically to combat the extra
spacing being added to content inside <textarea> by the browser. Is
there such a feature in ERB?
I shall denote indentation with underscores in the pseudo code example
below.
Thanks in advance,
Khoan.
myview.erb:
<html ...>
__<%= render ''form'' %>
</html>
2012 Nov 21
0
What to use //= require_tree or js,css incude tag in application.erb ?
Hi ,
We are using reqiure_tree in our application.js and application.css.
As per i know require_tree include all js and css in application.js and
application.css .
We include application file of both .js and .css in our application.erb.
Q . We include both .js and .css application file in application.erb .
Is including in application.erb, did all .js and .css file are
included in
2017 Mar 09
0
Error in formatDL(nm, txt, indent = max(nchar(nm, "w")) + 3)
It happens in the fda package because some of the headers are longer
than typical (e.g., "Repository/R-Forge/DateTimeStamp") and formatDL
dies if the indent argument is too large compared to the width argument.
It might be nice to change formatDL so it never gave such an error, but
did something reasonable when the 'indent' argument was too big.
Changing
if (indent >
2009 Mar 06
5
ActionMailer Layout on HTML version not Plain Text
I''m sending plain text and html emails by having multiple files for each
email I send. For example, for my registration email I have a
registration.text.plain.erb file and a registration.text.html.erb file.
I want to use a layout for the html version of my emails. In my mailer
I put:
class AccountsMailer < ActionMailer::Base
layout ''email''
...
end
2011 Mar 09
1
" instead of " in js code rendered by erb
Having problems rendering javascript in erb file. Thanks for
suggestions.
//layout erb file
(function() {
...
var widget_properties = {};
<%= content_for?(:extend_widget) ? "widget_properties = " +
yield(:extend_widget) : '''' %>
...
})();
//view erb file
<% content_for :extend_widget do %>
extend = {
_init: function() {
2019 Apr 26
1
Fix: menu indent for menu entry
Hello,
While experimenting with possible menu layout found this issue; the entry for MENU BEGIN doesn't follow MENU INDENT.
*Sample config*
label -
menu disable
menu label Distro
label rhel
menu indent 2
menu label RHEL
label cent
menu indent 2
menu label Centos
label fed
menu indent 2
menu label Fedora
menu begin
menu indent 2
menu label Others
menu end
# 'Others'
2011 Aug 31
0
ERB and binding in template
How to get current binding in a partial (to use helpers and local
variables in erb script)?
When I invoke result whithout binding,
= ERB.new("script").result.html_safe
all work (without vars are needed), but when I write
= ERB.new("script").result(binding).html_safe
(in HAML HTML partial), THE PARTIAL''S REST OF OUTPUT IS CLEAR.
What is the problem?
--
Posted