Displaying 20 results from an estimated 1000 matches similar to: "HTML Title"
2007 Jul 24
4
spec''ing helpers that use controller
Hi all,
I''m in the process of creating rspecs for my helpers. One of the
helpers in app/helpers/application_helper.rb looks like this:
def page_name
@page_name || "Define @page_name in
#{controller.controller_name}::#{controller.action_name}"
end
The rspec is simply:
it "should something" do
page_name
end
2007 Sep 26
1
add points to wireframe
Hello
R-classicist won't like the following question due to there's no minimal reproducible example and the question was posted already.
Anyway I'm not able understand this rather complicated version of "add points to wireframe".
what I have is matrix 3x2000 with a dem<-(x,y,z, coordinates) (not provided).
with follwing code I want to produce the wireframe and add some
2006 May 01
3
using HTML frames with rails
Hi:
I''m trying to get a page setup with the left side having a collapsable
javascript menu (built from the database) and the right side having more
data about each node in the tree... very standard actually.
I figured frames would be a good way to go, because as the tree expands
as the user dives further in, the frame will add scroll bars without
disrupting the left hand side.
The
2006 Mar 28
1
simple output string
Hi!
I am new to Rails and wanted to know how I can print an easy
string-line.
I wanted to generate a dynamic title for my blog articles made with
"typo":
The first part of the html-title stays the same:
<title>softrockcookie</title>
if it is not the mainpage ("softrockcookie") it shall add the
page_title, so:
<title>softrockcookie <%= page_title
2008 Jun 02
1
Looking for help on two issues with Rails 2.1 and RSpec 1.14
I have specs that ran fine in Rails 2.02/RSpec 1.13 that are failing on
Rails 2.1/RSpec 1.14.
There is one problem and one issue:
problem: sometimes (but not always) I get a NoMethodError referencing a
has_many association
issue: in helper specs, instance variables don''t get set unless the
HelperModule is included. Using the preferred helper.<method> I can''t seem
to
2011 Sep 04
4
same html elements rendering twice on page
hey all,
My index.html.haml:
- wrap do
- page_title "Teams List View"
application_helper.rb:
def page_title(title)
content_tag :h1, title
end
def wrap(&block)
concat(content_tag(:div, capture(&block), :class =>
"generic_header"))
end
I load in browser and get:
<div class="generic_header"><h1>Teams List
1999 Nov 03
1
Samba 2.0.6pre3 snapshots available.
As Andrew is a little busy right now I've made a Samba 2.0.6pre3
snapshot available at :
Source code
-----------
ftp.samba.org:/pub/samba/alpha/samba-2.0.6pre3.tar.gz
RedHat 6.1 Intel RPM
--------------------
ftp.samba.org:/pub/samba/alpha/samba-2.0.6pre3-19991102.i386.rpm
RedHat 6.1 Source RPM
---------------------
ftp.samba.org:/pub/samba/alpha/samba-2.0.6pre3-19991102.src.rpm
Please
2006 Apr 23
3
Just a couple questions on how I should go about this.
I''m working on my personal site. The design is complete and I want to
integrate some rails into it. I''ve done a few small things before, but
compared to them this is big.
I need a simple blog with categories and comments and an archive. I want a
nice posting system, but don''t want it in HTML. Is there something I can add
or make, kind of like BBCODE?
I pretty much know
2005 Mar 10
7
Order of Processing
It seems odd to me that the layout is processesed after the view. When I set a
variable inside the view it does not have an impact on the layout file. But
when I set it in the controller it does.
Is this the way it works or is it possible that I am doing something wrong?
2010 Aug 21
4
No route matches?
Hi all,
I''m coming from the PHP world and I''m trying to learn Ruby and Rails.
I''m having a problem where I keep getting the error "No route matches /
home/view" even though I have it defined it. I''d appreciate any help
on this. I''m using rails 3.0 and the setting for the environment is
"development".
# routes.rb
2007 Dec 02
3
Better way for select list for belongs_to?
I''m currently doing all of this just to have a drop-down list of
Courses for a particular student:
===== edit template =====
<%= f.select :course, @courses, :selected => @student.course.id %>
===================
===== students controller =====
def edit
@student = Student.find(params[:id])
@page_title = "Edit #{@student.full_name}"
@courses =
2006 Jun 24
1
@version_control_book not available while testing - AWD book 1 page 148
In the page 148 of the AWD book it''s mentioned that the while testing
@products and @version_control_book are automatically made available.
That''s not the case with me. In my test environment I don''t get those two
variables.
I was wondering if anything has changed in Rails 1.1 because in the new
edition of the book (AWD - edition 2) there is no mention of such
2009 Feb 09
2
Problem setting up a server on UDP port 59
I have a program that sets up a server on UDP port 59; it runs with no
problem under windows XP. Under wine it fails, the log shows "Permission
denied" for the WS_bind function.
Has anyone else seen this? Does anyone know how to work around this?
trace:winsock:WSAStartup succeeded
trace:winsock:WS_socket af=2 type=1 protocol=0
trace:winsock:WSASocketA af=2 type=1 protocol=0
2006 May 05
6
rake rails:update
This question has been asked before, but I am still can''t run rake
rails:update. I get
rake aborted!
Don''t know how to build task ''rails:update''
My environment: FC4, Ruby 1.8.4, Rails 1.1
Any idea what to do?
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2009 Oct 01
8
Build a Firewall (Can I learn to do this...)
Hi All,
I have a home business circuit and I am gearing up to host my business
affairs in my place. I have Comcast and 13 static IP's.
I have an extra PIII 1U, 2 9gb SCSI, 1gb RAMm dual NICS.
So I am wanting to build a firewall to front end my traffic. Assign
one of my statics to it and have Comcast statically route my traffic
to this IP. Then when traffic comes have it decide if it
2009 Dec 07
1
Cucumber and general Ruby question
Hello,
I have this cucumber step definition:
Given /^the site has pages "(.+)" and "(.+)"$/ do | page_1, page_2 |
Page.create :title => page_1 if Page.find_by_title(page_1).nil?
Page.create :title => page_2 if Page.find_by_title(page_2).nil?
end
This works, but obviously I would like to DRY it up. I was thinking along
the lines.
Given /^the site has pages
2005 Mar 09
20
WebGUI Scripts announcement
Dear Shorewall Users, having noticed that the request for a WebGUI is
growing, after a very short conversation I''ve had with Tom, I''d like to
let you all evaluate the Web interface to Shorewall I''ve written,
integrating the original weblet package made available for the LRP project.
----------------------------------------------------------------------------
Preamble
2007 Jun 19
1
javascript_tag replacing whitespaces w/ '%20'
javascript_tag replacing whitespaces w/ ''%20''
Hello,
I have a form that tests if a title has been changed since the page
was loaded and the page has been submitted. If the page title has been
changed then a confirm box will ask if the user wants to have the title
changed. The problem is if the person hits cancel, all white spaces
in the title get replaced w/
2006 Jan 04
7
variables in layouts
I have a layout that provides the basic outline of each page in my app.
It has a title, footer and a navigation bar.
In the title I want to put the name of the current user that is logged
in.
I could do something like @session[:username] but I would rather
encapsulate that into a single variable so that I can change the key in
the session map if I want without having to goto each page that
2006 May 05
3
Plugin refresh time
Hi there,
I''m currently developing a plugin to do authentication and
authorisation. In the init.rb file of the plugin I have this code:-
$:.unshift File.expand_path(File.join(File.dirname(__FILE__), ''lib''))
require ''open_advantage/authorisation''
ActionController::Base.send :include, OpenAdvantage::Authorisation
and this is the skeleton of my