similar to: Rails sanitize method is stripping my anchors

Displaying 20 results from an estimated 8000 matches similar to: "Rails sanitize method is stripping my anchors"

2007 Sep 22
4
anchor names from headers (Setext and atx)?
It would be useful if defining headers (either Setext and atx style), if Markdown would also generate corresponding anchors: ## This is an H2 ## would create: <a name="This is an H2"/> <h2>This is an H2</h2> Or something like that. Or is that available some different way? Thanks, Jeremy C. Reed
2008 Oct 18
2
Sanitize add more tags
I have added the following snippet to environment.rb: Rails::Initializer.run do |config| config.action_view.sanitized_allowed_tags = ''table'', ''tr'', ''td'', ''th'' end But it doesn''t work, my tags still get removed. Any idea why it is happening? -- Posted via http://www.ruby-forum.com/.
2006 Jul 02
1
trouble with anchors
I am having trouble both setting and connecting to rails pages and anchors. using a collection, I am trying to set the anchors like this... <a href="in_outs/list#name=<%= user_list_facility.list_value %>">\ <%= user_list_facility.list_value %></a> which does sort of work...the resulting source html is: <a href="name=15th Ave">15th Ave</a>
2013 Mar 24
5
Rails 4.0 has_many_through and fields_for
Hi all, I am trying to reproduce rails 3.2 behaviour with fields_for and nested attributes. class ControllerAction < ActiveRecord::Base has_many :interactions, dependent: :destroy has_many :roles, through: :interactions scope :controllers, lambda {|name| where("controller_name_id = ?", name)} scope :actions, lambda {|name| where("action_name_id =
2020 Jul 17
3
[FileCheck] RFC: Add support for line anchors.
Hello, I was wondering about extending FileCheck to enable creating line anchors. These are numeric variables that hold the value of the line number that where they were defined. The motivation for this comes from test cases using clang-based diagnostics which often include notes attached to source locations in different parts of the file. In order to test for the correct location of the note,
2008 Jan 02
5
anchor tags?
Hi, Is there a cool webgen way to do anchor tags? I''ve just been doing this: <span id="anchor_name"/> ...but is there a better way? Thanks, Chad
2020 Jul 17
2
[cfe-dev] [FileCheck] RFC: Add support for line anchors.
Hi Joel, That sounds like a very nice idea and definitely a direction I could get behind. However I feel that outside the use case I suggested, this functionality would only be used to compress CHECK lines that contain repeated text, not saying its a bad or good thing though. WDYT? ~Nathan On Fri, 2020-07-17 at 14:52 -0400, Joel E. Denny via cfe-dev wrote: > Hi Nathan, > > On Fri, Jul
2013 Jun 09
7
[Bug 2119] New: SSHFP with DNSSEC – no trust anchors given, validation always fails
https://bugzilla.mindrot.org/show_bug.cgi?id=2119 Bug ID: 2119 Summary: SSHFP with DNSSEC ? no trust anchors given, validation always fails Product: Portable OpenSSH Version: 6.2p1 Hardware: Other OS: Linux Status: NEW Severity: enhancement Priority: P5 Component:
2009 Sep 29
10
rails 2.3.3 upgrade shows error
You have a nil object when you didn''t expect it! You might have expected an instance of Array. The error occurred while evaluating nil.<< any ideas ? Application works fine with rails 2.1.0 Sandip -- Ruby on Rails Developer http://funonrails.wordpress.com www.joshsoftware.com http://brandpotion.com (Latest project released) --~--~---------~--~----~------------~-------~--~----~
2007 Aug 31
2
Automatic anchors for text boxes
Hi All, I'm struggling to add text automatically to plots. I have a series of scatterplots that I have stored in a script because the underlying data changes often and the plots need to be regenerated. I use the scatterplot function (defined in Rcmd, I believe). When one of the variables is a factor, a boxplot is drawn over the scatter of the other variable. In the case where x is a
2006 Aug 04
8
Unable to follow basic RoR tutorial (Win32)
I have just set up RoR to find out for myself if this tool is stable enough to actually be used yet. Anyhow, I started by going to the RubyOnRails website and following the instructions to install the platform on my Windows 2000 PC. "Get Ruby on Rails in no time" "We recommend Ruby 1.8.4 for use with Rails." So... I downloaded 1.8.4 and installed: C:\>ruby -v ruby
2006 Jun 10
2
How can I link/anchor down the page with #anchor in urls?
I''m trying to expand on a blog tutorial and one thing I can''t figure out is how to use anchors within pages. For example say I have sections on a page with anchors like <a name=section1"</a> through <a name=section6"</a>. Using older non-rails methods I would construct urls that contains the pound symbol and anchor name in the url such as
2009 Sep 29
5
NoMethodError in Stories#show
I''m a Rails newbie and am working my way through Simply Rails 2 by Patrick Lenz. Have run into a problem on page 207 of the book; this is the error I run into when I fire up my server and open up httpL//localhost:3000/ stories/new I have posted the error message and trace below. Thanks in advance for your help.
2005 Sep 14
4
How to drag/drop visitable anchors ?
Hi ! I have the following: <li id="photo_<%= @photo.id %>" class="photo"> <%= link_to(image_tag(url_for_file_column(:photo, :picture)), {:action => ''photo'', :id => @photo}, {:title => @photo.description}) %> </li> <script type="text/javascript" language="JavaScript"><!--
2007 Jan 29
6
RJS problem
Hi, I''m implementing a "digg-like" page, that once you digg. The score for each item will dynamically reflect your current action +1 . I am not sure what''s In the controller I have an action responsible for increase of the score.It has a corresponding rjs in view. -------------------------------------------------------------------------------- def arouse
2013 Jun 12
0
[LLVMdev] "anchor" method policy, request for clarification
(+Chris, since I assume he wrote this policy - and, as I said in my previous email, I wouldn't mind seeing some justification or just seeing the rule go away & drop the anchors I added previously (or, if we're going to keep it, we could add more anchors & actually get to the point where we're -Wweak-vtable clean & enable that warning)) On Wed, Jun 12, 2013 at 1:44 PM,
2011 Dec 20
0
[LLVMdev] anchoring explicit template instantiations
On Dec 10, 2011, at 5:20 PM, David Blaikie wrote: >>> Thanks Chris, committed as r145578. I don't suppose you'll mind some >>> similar commits as I encounter them? >> >> Yep, please feel free. > > While you said this - given that I've now gone & fixed /every/ > violation of -Wweak-vtables across LLVM & Clang (apart from some llvm >
2011 Dec 11
5
[LLVMdev] anchoring explicit template instantiations
On Thu, Dec 1, 2011 at 9:11 AM, Chris Lattner <clattner at apple.com> wrote: > > On Dec 1, 2011, at 12:08 AM, David Blaikie wrote: > >> On Wed, Nov 30, 2011 at 10:42 PM, Chris Lattner <clattner at apple.com> wrote: >>> On Nov 29, 2011, at 12:26 AM, David Blaikie wrote: >>>> For a bit of an experiment I've been trying to compile LLVM & Clang
2007 May 18
1
URL Fragment Anchors -- may be a Safari Question
Hi, I''m a new beginner so, please forgive if I am somewhat imprecise... I''m wanting to use fragment anchors in my pages. (I think that is the right term for them). So my URL will be something like pmrs/1#id56. I am using REST and resource style mapping. My first question is will this work o.k.? I''ve tested it a tiny bit and it seems o.k. but I''m worried
2013 Jul 13
2
[LLVMdev] Special case list files; a bug and a slowness issue
Hi, I need to be able to use a special case list file containing thousands of entries (namely, a list of libc symbols, to be used when using DFSan with an uninstrumented libc). Initially I built the symbol list like this: fun:sym1=uninstrumented fun:sym2=uninstrumented fun:sym3=uninstrumented ... fun:sym6000=uninstrumented What I found was that, despite various bits of documentation [1,2], the