Displaying 8 results from an estimated 8 matches for "devaulw".
Did you mean:
devault
2006 Jun 06
2
Toggle css for display on page load?
In my layout I have a navigation bar with a few elements in it. The
elements can be toggled on or off and thereby reveal or conceal some
subtopics. I store the state of the toggle for the navigation elements
in the session.
When the page is reloaded, the navigation items are collapsed because
the css for display: none is set by default in the html for the
navigation elements. Is there a
2006 Jul 21
7
Layouts
I am trying to set the layout for certain actions within a controller,
but not others, but doing
class JoinController < ApplicationController
layout ''form''
def index
end
def add
end
end
sets layouts for all actions, and doing
class JoinController < ApplicationController
def index
layout ''form''
end
def add
end
end
returns an
2006 Mar 31
5
Titles in URL ?
Hi!
I have an article website and would like to have the title of the
article in the URL. and not domain.com/show/id
ie: http://domain.ck/articles/how-to-become-a-ror-master/
How to change a title with special caracters like: '', :, ?, !. to
something that works in the URL.
Thank you!
--
Posted via http://www.ruby-forum.com/.
2006 Aug 17
11
Can I get RubyOnRails to read and parse an html file off harddrive?
I do this in ASP to read a special html template that I use, then modify in
code before spitting out the resulting webpage.
Any ideas on how to script this in RUBY? Do I need a special GEM package?
D. Bruce Moore
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060817/95cf5da6/attachment.html
2006 Jun 06
15
error working through Agile !!!
Hi everyone,
I''m working my way thru the ''Depot'' project from Agile Web Development
with Rails.
I got to the bit where I type:
ruby script/generate scaffold Product admin
And I get the following error:
error Before updating scaffolding from new DB schema, try creating a
table for your model (Product) ( on the last line ! )
Now I have followed everything as
2006 Jun 05
0
Download files/web pages using RoR
I need to be able to download files from another server using my Rails
app. How can I use Ruby or Rails to connect via http (or https) and put
a file into a variable or in a file on the web server? I also need to
be able to send a file to a site that has https/login access.
Can someone point me in the right direction to move these files around?
Thanks.
--
Posted via
2006 Jun 26
2
DRY up selects in view
Here''s what I''ve got:
<% @fields.each do |field_name| %>
<tr>
<td>
<%= field_name.humanize %>
</td>
<td>
<% unless field_name =~ /_id$/ %>
<%= form.text_field field_name, :size => 40 %>
<% else %>
<%= select(:vendor,
field_name,
State.find(:all, :order
2006 May 27
2
Route 1st domain to a controller, 2nd domain to con/act/id
I''m having trouble with mapping a first domain to:
map.connect '':action'', :controller => ''admin''
I can get that to work, and I''d be fine if there''s only one domain
pointing to my app.
However, I will point several domains to the app, so I only want that
route for one domain.
I''ve tried:
map.connect