Displaying 5 results from an estimated 5 matches for "my_page".
Did you mean:
m_page
2006 Jun 02
3
Custom Pagination Links
...o paging i.e. the full collection is
displayed, when it still display a "1" to represent the current page.
How can I suppress that?
Thanks!
<div class="pager">
<%= link_to(''< Prev'', {:params => params.merge(''page'' =>
@my_pages.current.previous)}, {:class => "prevlink"}) if
@my_pages.current.previous %>
<% for page in @my_pages -%>
<%= link_to_unless(params[:page].to_i == page.number, page.number,
{:params => params.merge(''page'' => page)},
{:class =&...
2006 Apr 25
5
Routing and extensions.
I would like my something like "my_page.html" to map to :controller =>
''page'', :action => ''my_page''. How can I accomplish that?
Is there a way to make the routing parse other things other than ''/''?
--
Posted via http://www.ruby-forum.com/.
2009 Apr 09
1
undefined method ''text'' ...
...un the example
*****
require ''rubygems''
require ''mechanize''
a = WWW::Mechanize.new
a.get(''http://rubyforge.org/'') do |page|
# Click the login link
login_page = a.click(page.links.text(/Log In/))
# Submit the login form
my_page = login_page.form_with(:action => ''/account/login.php'') do |f|
f.form_loginname = ARGV[0]
f.form_pw = ARGV[1]
end.click_button
my_page.links.each do |link|
text = link.text.strip
next unless text.length > 0
puts text
end...
2010 Jan 26
6
Subclassing ActiveRecord::Base
First of all, sorry for the crossposting, but I put this into the Ruby
Forum first of all, but was pointed to this as a more appropriate
location.
I''m using ActiveRecord and ActiveSupport in a non-rails environment
to connect to multiple databases, and I''ve found the following (single
database) to cause me an error. Note that params is my database settings
and omitted for
2005 Dec 30
4
AJAX Drag and Drop Detecting Drop Coordinates
...multiple times, even when not
triggered. It also didn''t give me any information on the draggable element.
I even tried it with :snap which should pass in x and y, but no luck
I took another approach and created a droppable area. Doing something like:
<%= drop_receiving_element "my_page",
:url => { :action => "drag_end" }
%>
Well that works in giving me the id of the draggable element, but I still
can''t figure out how to get the x and y coordinates of the item at its drop
location. The information is in there, and using straight java...