Displaying 16 results from an estimated 16 matches for "urbandream".
2006 Apr 20
8
2 layouts per .rb page
Hi,
Is this possible
ive got layout "loggedout_layout", :only => [:login, :logout]
but I also want to do somthing like
layout "loggedin_layout", :except => [:login, :logout]
When the second one is introduced it seems to cancel out the first
request, any suggestions how to get around this?
Scott
--
Posted via http://www.ruby-forum.com/.
2006 Apr 20
4
css
Hi im using this code below
layout "loggedout_layout", :only => :login, :logout
this part limits it to logout only, how can I get it to limit it to
logout and login?
Thanks
Scott
--
Posted via http://www.ruby-forum.com/.
2006 Jun 20
2
website hosting
Hi,
im looking for a shared web host account that will support rails (php 5
would also be a bonus)
Has any one got any recommendations?
thanks
scott
--
Posted via http://www.ruby-forum.com/.
2006 Aug 14
0
acts_as_bookmarkable - undefined method `add_bookmark''
Hi,
I''m jsut attempting to sue the acts_as_bookmarkable for the first time.
when I run the following 3 lines, I get an error undefined method
`add_bookmark''
@blog = Blog.find(params[:id])
bmark = Bookmark.new(:title => @blog.title, :user_id =>
session[:user].id)
@blog.add_bookmark bmark
>From what I can tell there is no method in the plugin
2006 Aug 14
1
2 foreign keys to one table
Hi,
I have a messaging class that has to relationships to one table
belongs_to :user, :foreign_key => "from_id"
belongs_to :user, :foreign_key => "to_id"
At the min I can specify message.user.login and it will return the
username of last relationship to that table.
how can I get it to bring back both references
ie message.from.login and message.to.login
thanks
scott
2006 Jun 20
2
getting hold of the API documentation database
Hi,
Im looking to put together hopfully a more useful api documentation
site, more like php.net
does anyone know where I can get hold of the api as a database dump
thanks
scott
--
Posted via http://www.ruby-forum.com/.
2006 May 04
0
here to put custom code in the files system
Hi,
I need to write a few custom functions that will be called when a show
method is called.
Where is the best place to put this in the rails file system tree?
Thanks
Scott
--
Posted via http://www.ruby-forum.com/.
2006 Apr 19
1
validates_presence_of
Hi, having a few problems working out whats kicking off,
im using validates_presence_of :title in a models class
this seemed to work fine untill I used a custom new.rhtml
error message I am gaining is
NoMethodError in Recipe#create
Showing app/views/recipe/new.rhtml where line #15 raised:
You have a nil object when you didn''t expect it!
You might have expected an instance of Array.
2006 Apr 21
0
navigation
Hi,
Im looking to add some navigation to a template, will most likely need
to use a database to define primary navigation bar and secondary bar.
Has anyone got any pointers of where to start with this?
Is there a module already developed that I can install?
Or has anyone got any useful links?
Thanks
Scott
--
Posted via http://www.ruby-forum.com/.
2006 Apr 28
2
outputing table data
Hi,
Just come across thi sproblem, and jsut cant find out what is wrong with
it, if any one has any suggestions it would be good.
in my projects_controller.rb I have
def list
@project_pages, @projects = paginate :projects, :per_page => 10
end
and ths list.rhtml file I have
<table>
<tr>
<th>Name</th>
<th>Actions</th>
2006 Apr 19
3
include contents of one rhtml in another
Hi
I have a rhtml documment in views/account/login.rhtml
I want to include the contents of login.rhtml in
views/welcome/index.rhtml
any suggestions on how this can be done?
Thanks
Scott
--
Posted via http://www.ruby-forum.com/.
2006 Apr 28
3
store user id in session or find user id
Hi
Im uisng the lgoin generatior that as far as I can tell stores the
username in session.
I have another table that i need to store the id of the user who creates
an entry. (the logged in user)
Is it possible to store return the id and store it in session once the
user is created.
then do somthing like @project.user_id = session[:user].id;
or can I perform a search in the product table
2006 Apr 19
3
ror css
Hi
pretty new to this ROR stuff, ive just created my first simple plication
using scaffold, was just wondering if anyone knows of any good tutorials
on how to screate custom css stylesheets for these pages.
also whats the best way to go about adding a footer / header html images
to all pages
Thanks
scott
--
Posted via http://www.ruby-forum.com/.
2006 Apr 24
4
creating a select box
Hi
trying to create a select box in _form.rhtml.
I have a table called organisations that contains fileds, 2 being ''id''
and ''name''
these are the fields I need to bring over to the clients _form.rhtml.
whats the best way of going about that??
2 ways i have seen suggested that I cant get to work
-@organisations = Organisation.find_all placed this in def new
2006 Apr 26
6
get foreign key table data
Hi
I?m trying to bring across all related data.
My table clients has a foreign key field that stores the id of an
organization
How can I grab the details of the organization to use in the clients
show.rhtml file?
Thanks
Scott
--
Posted via http://www.ruby-forum.com/.
2006 Apr 28
7
acts as drop down
Hi
Im using the acts as drop down plugin
and have this code below
acts_as_dropdown :text => "forename", :order => "forename"
It currently makes use of the forename in the option tag, how can I get
it to use the surname as well
ie somthing like ''forename'' . ''surname'' in php
Thanks
--
Posted via http://www.ruby-forum.com/.