similar to: Haml ... ending a line with a | (vertical bar)

Displaying 20 results from an estimated 12000 matches similar to: "Haml ... ending a line with a | (vertical bar)"

2010 Jun 08
9
[Rails Heroku] Problem with saving object (on heroku hosting)
Hi All, I have some strange problem which appears only on heroku hosting 2.3.5 default stack (not on my local computer) I have some models. Here they are: class Contact < ActiveRecord::Base belongs_to :user belongs_to :type, :class_name => "ContactType", :foreign_key => "type_id" validates_presence_of :name, :on => :create, :message =>
2010 Dec 21
5
Rails, Ruby, haml, metaprogramming problem
In HAML I have hundreds of lines like the following: - xyz = someFuncThatReturnsString(''xyz'') and elsewhere %div{''id'' => xyz} The above lines work fine. - - - Attempting to keep things DRY (Don''t repeat yourself) I want to do something like - eval(otherFuncThatReturnsString(''xyz'')) where
2010 Sep 07
2
Help on formatting some HAML
I wondered if anyone could help me with turning the following in ERB into HAML. I''m VERY new with HAML: ---- <div class="block-element span-7 colborder"> <span class="rightside blue-hue no_decor"><%= link_to "New Order", new_order_path, :remote => true %></span> <h3>Today''s Activity</h3> <hr>
2008 Jan 19
5
HAML makes me love and hate Python
I''m just a rails newbie, but I thought I would point out a small observation. About a year ago, I was having real trouble making the decision about whether I should learn Ruby or Python. I finally settled on Ruby, one of the reasons being that I didn''t want my language to tell me how whitespace should work. (Although the main reason was how object oriented Ruby is) Although
2011 Jan 02
7
Rails, .swf, .flv
I have the following HAML code ul{ ''id'' => tutorials_ul } %li %a{''href'' => ''/videos/create-command-001.swf''} ''Edition swf'' %li %a{''href'' => ''/videos/create-command-001.flv''} ''Edition flv'' When the user clicks on
2008 Jan 01
7
in_vertical_groups_of
Hi all, Here''s another contribution for anyone interested. In Railscast episode 28, Ryan Bates showed us in_groups_of which allows you to group array members such as >> list = [1, 2, 3, 4, 5, 6, 7] => [1, 2, 3, 4, 5, 6, 7] >> list.in_groups_of(3) => [[1, 2, 3], [4, 5, 6], [7, nil, nil]] This allows you to iterate over the groups and, for example, display a list
2010 Sep 18
11
Commenting in an ERB without generating a compiling error
Hello, I have the following: <% @projects.each do |project| %> <tr> . <td><%= link_to ''Destroy'', project, :confirm => ''Are you sure?'', :method => :delete %></td> . </tr> <% end %> How can I safely comment out the TD line above? Do I have to use the =begin way? -- You received this message because you
2009 Dec 23
8
Where did this value in a form come from?
Newb here. I have a form and a value that is being displayed ... and I have no idea where the value came from. I have done a <%= debugger; '''' %> in the form and, indeed, the debugger stops at the statement. I have tried to trace through the code to see where the value came from ... and I gave up. So ... what in Rails initializes the fields of a form? -- Posted via
2008 Oct 29
2
Barplot: Vertical bars with long labels
Dear List, I need a barplot with vertical bars. Each bar should have a label. The problem is, that the labels are too long, so they overlap, or only every seccond label is displayed in the output. Here is a little syntax: dd <- c(100,110,90,105,95) barplot(dd,names.arg=c('Conduct Disorders','Attention Deficit', 'Eating Disorders',
2012 Jan 15
2
DEPRECATION WARNING: Passing a template handler in the template name is deprecated. (rspec + haml)
I upgraded a small project that I had created on 3.1.3 to 3.2.0.rc2. Running rspec on it brings about a large amount of these messages: DEPRECATION WARNING: Passing a template handler in the template name is deprecated. You can simply remove the handler name or pass render :handlers => [:haml] instead. (called from block (2 levels) in <top (required)> at
2012 Oct 23
2
SyntaxError in Posts#index ?
For some reason getting this... Any ideas? Extracted source (around line *#13*): 10: <%= link_to "Show", post %> | 11: <span class="admin"> 12: <%= link_to "Edit", edit_post_path(post) %> | 13: <%= link_to "Delete", post, method: :delete, data: {confirm: "Are you sure?"} %> | 14: </span> 15:
2002 Mar 27
2
Vertical bars with barchart()
I would like to create a barchart that has vertical instead of horizontal bars. My goal is something similar to Figure 6.10 (p. 166) in "The Basics of S and S-plus," except for the orientation of the bars. I don't think bwplot() or xyplot() will work. Any suggestions? Scott Waichler Hydrology Group/Environmental Technology Division Battelle Pacific Northwest National Laboratory
2007 Mar 19
3
Wine reboot my linux
Hi everyone, While trying software, I've found that when I tried to install Catz 2, my computer reboot (I've tried twice). Before opening a bug, what channel I have to log ? WINEDEBUG = +seh,+relay ? I'm using xUbuntu 6.06 and wine 0.9.27 Thanks, Michael
2010 Jun 08
8
rails, ajax, json, and script
Could someone please demonstrate the code to send both json (or xml) AND javascript (to be executed) in a single Ajax request? Is this even possible? -- 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
2003 Aug 28
4
Cook-distance-type plot (vertical bars)
Hi, Figure 13 of Emmanuel Paradis's "R for Beginners" was produced by termplot working on an aov object. The lower right-hand plot is labelled "Cook's distance plot", and I'd really like to produce a similar type of figure, but in a totally different context. (I'm not even sure what this kind of figure is called, perhaps an "impulse plot", where
2017 Sep 22
2
Lattice stacked barplot vertical bars
Dear all, I have made a barplot using lattice in which the bars are stacked horizontally. I would like to stack them vertically, but if I use the parameter 'horizontal = FALSE' I get the error: 'Error in FUN(X[[i]], ...) : invalid 'type' (character) of argument'. The problem I face is that, in drawing the bars vertically, the y variable becomes numeric rather than
2010 Mar 30
0
using haml in internationalisation with haml views
I''m trying to use haml in my locale files but cant get it to parse. en.yml --------- page: content: " %p some paragraph %p another paragraph " view.html.haml ------------------- (works) =Haml::Engine.new(t(''page.content)).render -------------------(does not) =t(''page.content) is the first example the only way to do this? or am I going about
2017 Sep 22
0
Lattice stacked barplot vertical bars
Hi Luigi will this do barchart( D ~ A|E, DF, groups = C, stack = TRUE, horizontal = F, main = "Comparison of test results", xlab = "Count", col = c("yellow", "orange"), par.settings = list( strip.background = list(col="light grey"), superpose.polygon=list(col= c("yellow",
2007 May 30
2
ActionView::TemplateError
Hi, I have a strange problem that only occurs on the production server. I''ve been banging my head for hours trying to figure it out with no success. Below is a copy of the error from the production log. ActionView::TemplateError (Expected /www/rails_apps/scanlan/current/ public/../config/../app/models/image.rb to define Image) on line #6 of app/views/admin/design/_record.rhtml: 3:
2012 Oct 10
8
link_to with additional data
Hi, rails 3.2.8 I must be missing something basic (and it''s been driving me mad) because I am trying to send one additional data attribute to my controller from a link, but I can''t seem to get it into the params received by the controller. I have looked around and found answers, but none seem to affect my links. I''ve set up a dummy app with a home page and a single