similar to: pagination_links - change anchor size?

Displaying 20 results from an estimated 100000 matches similar to: "pagination_links - change anchor size?"

2006 Jul 23
2
pagination_links and friendly urls
my pagination_links seems to auto generate the links using the current controller, action and id. The page they''re appearing on however have a friendly url I have created. I want to be able to make pagination urls generated by pagination_links "user friendly" as well so that they match my current naming convention.....i know there must be a way to do this....any ideas?
2006 Jul 12
2
Problem w/ Rails 1.1.4 and pagination_links using params?
I just installed version 1.1.4 and it seems like I started having problems with the pagination_links method. When I call the method using something like this (using the :params option--and this seems to be the problem), <%= pagination_links @todo_pages, :params => params %> then it duplicates part of the controller in the generated url. For example, before one of my paginator links
2006 Apr 27
2
How to override pagination_links method
I intend to override pagination_links method. I added following lines of code in application_helper.rb module ActionView module Helpers def pagination_links(paginator, options={}, html_options={}) raise("boom!!") end end end But my code is not executing my code. The view is still using the method pagination_links from rails. What''s the correct way to override
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
2006 Feb 13
1
Paginate @member.items?
Is there a quick and easy way to paginate something like @member.items (Member with has_many :items)? Right now I do in the controller: @item_pages, @member_items = paginate :item, :conditions=>["member_id=?", @member.id], :per_page=>25, :order=>''datetime desc'' It''d be more DRY if this was possible: @item_pages, @member_items = paginate
2006 Jan 19
8
Pagination_links without "?page=" but with params[:id]
Hello, With default pagination I have this : <a href="/users/infos/3?page=1">1</a> <a href="/users/infos/3?page=3">3</a> but i need this : <a href="/users/infos/1">1</a> <a href="/users/infos/3">3</a> I need to remove the "?page=" parameters and rewrite a little the link ( with a link_to ? )
2009 Oct 16
0
Selenium: get href link by anchor text
Hi I am using Selenium on rails plugin for automated testing in my project. Currently I can check the links on a page by anchor text. Now I want to check href link for that anchor text like for <a href="/prj/url">Click Here</a> "Click here" text contain "prj/url" url.. So can anyone tell me how can I do this? Thanks in advance Brijesh Shah --
2006 Feb 09
2
select options for HABTM?
I''ve looked through the docs and the wiki and can''t figure out how to go about generating select options and the update function for an item that has a HABTM relationship. I have a ''parks'' table and the park model has a HABTM to the ''states'' table. On the park edit page, I''d like a multiple select box to appear with all states show,
2013 May 15
2
[PATCH] Fix dead links/anchor and update comparison
Hi, The first patch updates comparison.html, the second fixes some dead links in the website pages (both for flac-website.git) and the third patch fixes a dead anchor in the Doxygen API documentation (in flac.git, not flac-website.git). -------------- next part -------------- A non-text attachment was scrubbed... Name: 0001-Update-comparison.html.patch Type: text/x-patch Size: 0 bytes Desc:
2006 Jan 26
21
pagination_links help
I want append custom query parameters to my pagination links, like ?page=1&foo=bar. I can''t quite figure out how to do this with the pagination_links helper, although I believe the API says you should be able to: pagination_links(paginator, options={}, html_options={}) options are: :params: any additional routing parameters for page URLs Has anyone tried this? thanks, jeff --
2005 Nov 11
0
Possible to simplify these routes?
In my routes.rb I have: map.connect ''items/category/:category_id/order/:order/page/:page'', :controller=>''item'', :action=>''list'', :requirements => {:category_id => /\d+/} map.connect ''items/category/:category_id/order/:order'', :controller=>''item'',
2008 May 30
7
Styling an Anchor Tag With Prototype
I have a question: How do you style the various components of the anchor tag? I am doing it this way: $$(''a:link,a:visited'').each(function(link){ //links link.setStyle({ color: ''#''+$F(''cp4_Hex'') }); }); $$(''a:hover'').each(function(link){ //links link.setStyle({ color: ''#''+$F(''cp5_Hex'')
2006 Jan 12
1
File Upload from URL?
Rather than having a file upload field, I want to have a text field where a URL can be specified, then get the file from the URL and treat it like a typical file upload (presumably saving it in /tmp). Anybody know how to do this? Thanks csn __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
2006 Sep 15
2
Link_to with anchor?
Hi! Very silly question, but how do you use link_to with an anchor, for example: www.website.com/articles/123#comments ? Just can''t figure out! Thank you! -- 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
2007 Jun 02
0
Rel attribute in anchor tags
Hi there, I haven''t looked at the code but will it be possible to add rel attribute to anchor tags in super redcloth? It would be great! ATM i have changed the regexp in redcloth to use curly braces as rel tag when writing textile. Since target attribute don''t validate in XHTML strict and i still want to open some links in new a window. Old style ---- Textile:
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,
2006 Jan 30
2
Finding grandchildren with has_many?
I have a table hierarchy like so: sites->items->comments I''d like to be able to do this in templates: <% for comment in @site.comments.find(:all, order=>''timestamp desc'') %> I''ve tried all the various permutations of ''has_many'' in site.rb I can think of, but can''t get it to work. I''m not even sure if
2006 Jun 08
0
adding anchor ref in controller action
hello, is there a way to add an anchor reference (#anchor_name) to the url from within the current controller action? Nate -- Posted via http://www.ruby-forum.com/.
2013 Mar 14
0
Display custom links above top level arrays using Jbuilder
I have a custom JSON response in which I display a collection of 15 posts along with related data like comments etc., as part of an API call. I am displaying the entire collection using Jbuilder . json.array!(@posts) do |post| .. .. end I want to display pagination links above the response of the 15 posts, in order to get the next set of posts with the appropriate next set of next page and
2006 Jul 24
0
Why doesn''t default_url_options :anchor => ... work for render
In my action, I test to see if a particular button was clicked, if it was, I want the template to render, but to go to a particular anchor, like #company. E.g. if params[''add_company''] default_url_options :anchor => ''insurance'' end #... logic # then default render In the add.rhtml: <a name="company"> <%= text_field model, company_name