Displaying 20 results from an estimated 70000 matches similar to: "Routing questions"
2009 Sep 23
0
[PATCH server] consolidated network & routing info ui's
created/edit network information is all specified on
one simpler form
---
src/app/controllers/network_controller.rb | 27 +++++++++++++++----
src/app/models/bonding.rb | 2 +-
src/app/models/network.rb | 2 +-
src/app/models/nic.rb | 2 +-
src/app/views/network/_form.rhtml | 15
2005 Feb 19
5
Routing: How do I use what is left from an URL
Hi,
I have this scenario. I have the full path of a page stored in the
database (column ''path''). I want to be able to have very short urls for
retrieving the pages, so i have this route in my map
map.connect ''-/:title'', :controller => ''page'',
:action => ''view_by_title'', :title => nil
so when I go to
2006 May 12
5
Implementing URLs with more than 3 levels in Rails.
Hi There
I started using Rails recently, and I see it''s very easy for URLs that
have up to 3 levels:
/:controller/:action/:id
But what do you do when you need more than 3?
For example, my current project should have an "admin" interface.
Admin has several sub-interfaces, for example a "users" interface. And
the admin/users interface has several actions, e.g.
2006 Sep 06
3
url_for , controller routing error
I have an ''account_controller.rb'' in an ''admin'' module
I list the accounts with : http://0.0.0.0:3000/admin/accounts/list,
and get my table
trying to sort it, I use the follwoing sort_link_helper :
def sort_link_helper(text, param)
key = param
key += "_reverse" if @params[:sort] == param
options = {
:url =>
2006 Mar 09
7
How to restrict access to admin part of the page?
Hi!
What is the easiest way to restrict access to some part of the page?
In php i just put .htaccess and .htpasswd files in /admin folder and it
worked.
Now i''ve got one admin folder for controllers, one for views, public
folder and i''m not really sure if it''s still possible. So what is the
easiest way? I don''t have any user logging features on my site,
2006 Mar 08
3
Many renders in one view?
Hi!
This was probably asked many times, but i can''t find it anywhere.
How to render in my view many actions (sometimes from different
controllers)?
So i.e. I will have user status/login form at the top, form for
creating/editing some data on the left and a list of these data elements
on the right and some other things at the bottom?
Can i put some of this stuff to the layout? So i
2006 Apr 26
2
Retrieving :id without passing it
Ok, I have read most of Agile Web Dev... so I had a question about
beautifying URLs using routes.rb. I''m trying to architect a content
management system in which a user can create template pages. This way,
when a user creates a template page nested within, it displays it as
though it''s displaying a folder structure, much like a directory tree
(using acts_as_tree).
I have a
2006 Mar 08
3
attribute or instance method or what?
Hi!
Uhm are attributes just something like additional members of a class,
other than those that come from the names of columns in the table?
I''ve got images table, which has ''name'' column. I''ve added support for
creating thumbnails out of uploaded pictures and i''d like to have an
easy way of accessing them in my views.
How to do it? I.e. my image
2010 Apr 10
2
Need a dropdown having "more.." option
I have a collection of products that I am showing in a dropdown. Now
at the first view it will show only first 10 products in the dropdown
with an option "more..." at last. if user clicks the "more..." he can
see all the following products in that dropdown list (this is not any
ajax request, just javascript show/hide). Of course the more... option
will hide when showing all
2006 Mar 13
6
Specifying none/single/many conditions at the same time
Hi!
It''s rather ruby question than rails...
I have a single ''list'' action where i call paginate method.
I can receive none, 1 or 2 variables that specify conditions for
paginate method.
How to write the code so i can call paginate without conditions if all
conditions variable are nil, with a single condition if one of
conditions variables is not empty and with 2 if
2015 Feb 19
3
Help with routing question.
On Wed, February 18, 2015 13:07, Les Mikesell wrote:
> On Wed, Feb 18, 2015 at 11:39 AM, James B. Byrne
> <byrnejb at harte-lyne.ca> wrote:
>> 2. How does one configure the routing table on network startup to
>> specifically detail the route particular addresses are supposed to
>> take?
>>
>
> Not exactly sure how routing works with aliases on the same
2006 May 25
2
Newbie AJAX rjs syntax question
I''m brand new to Ruby and to Rails, and I''m running through Pragmatic''s
"Agile Development" V.2 book and am having problems with the rjs files
in their tutorial.
First problem:
page[:cart].replace_html :partial => ''cart'', :object => @cart
This line stopped the AJAX request. The action completed without
trouble, but when it hit
2005 Jul 06
0
About routing, nat, the FORWARD chain, and a bit of Julian''s patches
Hi!
I''m still trying to solve the problem, about which I already posted in
these lists... I''ve been trying to understand where packet routing and
NAT is being done. The schemes are quite clear, when it''s about the
_first_ packet of a NAT connection (when it enters the NAT table). But
it isn''t that clear about the packets NAT''ed by the connection
2002 Oct 29
1
the routing cache and route selection; is this correct?
Hello all,
I do not read C very well (especially kernel C). Though I have tried to
muddle my way through an understanding of what''s going on in fib_hash.c,
fib_rules.c, and route.c, I have not succeeded to my satisfaction, hence
my post.
I''m trying to document the general process of route selection, and have
come up with the following overview. Could somebody point out any
2006 Apr 22
0
Re: Rails Digest, Vol 19, Issue 611
Thanks szymek for putting me on track. What I did was re-intstall the
file_column plug-in but I still got the same error so I added @recipe =
recipe and then then error changed to something about nil.first. So I added
a
rescue "no image"
to the end of my image_tag like so
<%= image_tag url_for_file_column("recipe", "image") rescue "none" %>
and
2009 Oct 28
0
Specific routing problem
I am implementing a system for users to easily create a small shop for
themselves. And I''ve run into a route problem.
NOTE: I''ve removed a lot from my route.rb file, since I want focus on
this particular problem. :-)
I currently have a route.rb like this:
ActionController::Routing::Routes.draw do |map|
map.resources :shops do |shops|
shops.resource :cart, :member => {
2008 Apr 15
0
routing problem: map.testroute ":param1/:param2-:param3-:param4.html"
hi,
I''m trying to create meaningful urls with routing extracting all
params as specified:
map.testroute ":param1/:param2-for-:param3.html"
However this approach totally fails - it says Routing Error, No route
matches "/aaaa/bbbb-for-ccc.html" with {:method=>:get}
Then while browsing source code and some googling I''ve found that
there is sth called
2006 Mar 22
4
How to write this SQL query?
Hi!
Is there rails version of "where column in (value1, value2, ...)"?
I know i could do OR many times, but this way is shorter.
I''m ruby/rails newbie, so i have a problem with converting the hash,
which i''m receving from the search form into the string for :conditions
in find method.
Could i instead of creating one, complicated (for me) query do something
like
2007 Nov 27
1
routing
Hi all,
My site uses subdomains to define an item. Eg http://itemname.mysite.com
I fetch the itemname and render the appropriate site from that
itemname. The subdomain is used everywhere (eg http://itemname.mysite.com/events,
http://itemname.mysite.com/products/show/11, ...)
I now want to give the user the possibilty to use a ''real'' domain like
www.itemname.com that should
2006 Feb 08
1
routing: requiring requirements for non-existent params?
With this route:
map.connect ''items/:subject/:id'',
:controller=>''items'', :action=>''show_redirect'',
:requirements => {:subject => /.+/, :id => /\d+/}
Is it possible to have it match these URLs:
items/biology/123
items/chemistry/234
items/math/456
But not these:
items/new
items/list
...
The problem is that :requirements only