Displaying 20 results from an estimated 400 matches similar to: "Routing Problem"
2006 Aug 02
2
Ajax_Scaffold display from link table
Hi,
Ive followed the pets/people ajax_scaffold example without any problem.
I have a table documents and each document has a category. In the
documents table i have a field called category_id. So in the documents
grif i want to display the corresponding catgory name and when it comes
to adding a new category or editing the have a drop down list to select
from.
category.rb
require
2013 Dec 03
2
Using guestfs to debug kernel
Hi,
I would like to use libguestfs to help me setup a VM that I run later
with qemu to debug my linux kernel (via qemu -kernel <mykernel>
-append ...).
One problem I face for instance is that my VM lacks the modules
matching my kernel version. So what would you consider as the best
option here to load the modules for the kernel ?
Should I upload the modules from the host to the VM
2006 Apr 30
3
require "ajax_scaffold" in model error
Hi there,
I''ve got installed ajax_scaffold_generator (3.1.2, 2.2.1)
Anyway I''m following the example here <http://height1percent.com/
articles/2006/04/18/ajaxscaffold-3-1-0-released> which suggests the
following in a model file:
--------------------------------------------------------
require ''ajax_scaffold''
class Pet < ActiveRecord::Base
2011 Jan 06
1
Access rights after dsync
Hi,
It looks like the access rights are not correctly preserved
after a dsync
I have rwXr-X-- from my original folder (which is right)
I have rwXrwXrwX in the "mirrored" fodler (which is very wrong)
Not
sure what cause this, but it looks like a bug
Best,
jm
2006 Jun 28
9
Rails Borked After 1.1.3 Install?
I installed 1.1.3 on my OS X Tiger machine and now I''m seeing very strange
results.
When hitting a controller action, I am told that perfectly valid methods are
not there:
NoMethodError (undefined method `find'' for VideoTrack:Module)
Huh? Here''s the code in question:
VideoTrack.find(:all, :conditions => "featured_video = 1", :order =>
2008 Jan 06
8
n00b question/issue
i know this is n00b but i have searched and i can not figure it out.
i am running instantrails on windows. i downloaded ajax_scaffold and
installed using script/generate in a new rails project. after
configing the db i can the following error when trying to access
http://localhost:3001/invoices/list (invoices is the controller/table
i built ajax_scaffold on)...
NameError in
2006 Mar 13
5
What is the matter with content_for_layout?
Here is my layout file:
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<title>My Demands</title>
<%= stylesheet_link_tag ''ajax_scaffold'', :media => ''all'' %>
<%=
2006 Jun 26
9
Form Mail
What is the most RoR friendly way of making a form mailer similar to
this php one?
http://tips-scripts.com/?tip=form_mail#tip
Or is it easier just to use the php with RoR?
--
Posted via http://www.ruby-forum.com/.
2006 Mar 22
3
stack level too deep error : Pulling my hairs out
Hello, I''ve changed something in my test application and since I can''t
find the cause of the "stack level too deep" raising on every request.
I''ve removed almost every part of code and the error still occurs, eg
with this url : www.myhost.com/main/index
routes.rb (nothing else in this file)
map.connect '':controller/:action/:id''
2007 Jan 23
3
Too many session numbers per page request?
If I view the source on one of my pages I see:
<script src="/javascripts/prototype.js?1168898271"
type="text/javascript"></script>
<script src="/javascripts/effects.js?1169242655"
type="text/javascript"></script>
<script src="/javascripts/dragdrop.js?1169241657"
type="text/javascript"></script>
2006 Jul 10
0
ajax scaffold problem
Hi,
I am using ajax_scaffold to generate against a model backed by atable on SQLServer...
It creates all the stuff, and I can list the items in my table... But, the "Edit" and "Create New" buttons dont work...
The strange thing is that the problem occurs when I edit the ajax_scaffold generated controller with before_filter/set_charset...
I try to set the charset of pages
2006 Aug 15
6
try creating a table for your model
Railers:
Greetings from the low end of the learning curve. I have installed all
the prerequisites on Win32, including a lite MySQL database with a
table in it called Inventory.
Then I run this command line...
ruby script/generate ajax_scaffold Inventory
...and I get this error message:
error Before updating scaffolding from new DB schema, try creating
a table for your model
2006 Jun 18
2
Why can''t I use a session? (Symbol as array index)
Hi All
I can''t for the life of me see what is wrong with this. Maybe it''s cause
it''s midnight...
I want to put some data in a session and I have some code like this:
class ApplicationController < ActionController::Base
model :mything
def ApplicationController.chosen_thing
session[:chosen_thing] ||= MyThing.defaultThing
end
end
So whenever I try to
2006 Apr 28
3
Error with show.
Hello everyone, I have a problem while opening something like
/main/show/1
Here is the template for show.rhtml
<% for name in @names %>
<div>
<h2><%= name.full_name %></h2>
</div>
<% end %>
And here is the code specific to the show on the main_controller.rb
def show
name = Name.find(params[:id])
end
And here is the error im getting.
You have a
2013 Dec 03
0
Re: Using guestfs to debug kernel
On Tue, Dec 03, 2013 at 06:05:24PM +0100, Teto wrote:
> Hi,
>
> I would like to use libguestfs to help me setup a VM that I run later
> with qemu to debug my linux kernel (via qemu -kernel <mykernel>
> -append ...).
> One problem I face for instance is that my VM lacks the modules
> matching my kernel version. So what would you consider as the best
> option here to
2006 Aug 13
1
Online Form
I can''t find a beginner''s tutorial for creating an online form that submits
via email-does anyone know of one? How difficult is this in rails?
james
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060813/9eb800d5/attachment.html
2006 Nov 28
17
Index not being updated
My index is not being updated when I add new records or amend existing
ones.
Can anyone point me in the direction of where I should be looking for
what is going wrong?
I''m running this in the production environment.
--
Posted via http://www.ruby-forum.com/.
2006 May 26
3
validate a form NOT connected to a model
Is there any way to validate a form that isn''t connected to a model. I have
a form that connects to a controller action and I want to validate the
inputs on the form like I would with the validates_ATTRIBUTE_of property on
a model. Is there any way to do this?
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2008 Oct 05
2
create contact form
Hi all
I have a regular HTML form that I want to convert into a RoR form
Because I do not need to save the data in the database I think I need:
- a controller and a viewer
- send submitted fields through email
<h2>Contact Form</h2>
<form action="contact.html">
<fieldset>
<legend>Please send your message: </legend>
2006 May 09
13
What is the license of generated code?
I''m trying to figure out what the software license would be for code
(scaffolds, etc) generated by Rails.
Basically, if I set up a Rails project, can or should I be able to claim
copyright (and therefore have the ability to license under e.g. GPL)
over the files generated by :-
- The "rails" command that creates the initial tree of files
- The output of "generate