Displaying 20 results from an estimated 30000 matches similar to: "How do I make an API?"
2007 May 30
2
Bug? Filter chain halted as [#<ActionController::Filters::..
OK so I''ve been trying to follow the tutorial here:
http://rails.homelinux.org/
When I simply do "scaffold: category" in the controller.rb, everything
works fine. BUT after I generate the controllers and other files using
scaffold AS A SCRIPT (script/generate scaffold categories), DESTROY (or
DELETE) does not work for any record in a table. This is the error I
got:
Processing
2008 Jun 15
5
Ruby on Rails 2.1 Tutorial
Hi,
I have put all the basic things in place and you will find it a working
tutorial for Ruby on Rails 2.1.
http://www.tutorialspoint.com/ruby-on-rails-2.1/
I have covered Model, Controller and Views in detail and you will find a
nice example on scaffolding.
If you like this tutorial then please share it with others....Oh
yes...if you have any feedback then please definitely send it to me.
2009 Nov 13
4
R, NIH and FDA
Dear All,
I will soon be working with NIH and possibly FDA. Will I be able to
use R or will I be forced to use SAS?
Cheers,
Federico
--
Federico C. F. Calboli
Department of Epidemiology and Public Health
Imperial College, St. Mary's Campus
Norfolk Place, London W2 1PG
Tel +44 (0)20 75941602 Fax +44 (0)20 75943193
f.calboli [.a.t] imperial.ac.uk
f.calboli [.a.t] gmail.com
2007 Feb 21
4
Scaffolding plugins that support relationships. . .?
Hi All,
I''m looking for a quality scaffolding plugin. So far I''ve discovered
DryScaffolding and Streamlined. DryScaffolding doesn''t truly support
Rails 1.2.2 so I dropped that. Streamlined works, but is full of
quirks (e.g. many-to-many relationships not cascade updating
correctly, etc). Can anyone suggest a quality scaffolding plugin/
generator/framework that
2008 Sep 02
6
Scaffolding
Hello everyone,
Does scaffold still work in the new rails 2.0?
Thank you,
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
2007 Sep 19
5
problem after scaffolding
hi guys,
I am having problems after scaffolding
I created a db called "requests"
and when i tried to execute the command
script/generate scaffold request
It gave me an error please make sure you have a database request created
before you do this
The db is obviously created; rails cant access it...
so I tried to hack i copied my view model and controller files from my
local deployment to
2007 Dec 10
15
Scaffolding for pre-existing database table in 2.0.1
Hi,
first of all I will apologize in advance for my presumably noobish
question, but I''m only starting to learn Rails and am a little
confused with all the changes in 2.0.1. There are as good as no
tutorials out yet and the 2 or 3 screencasts I''ve seen deal with the
creation of both the app and the database.
Now my problem is that I already have a database with a fair amount of
2007 Dec 27
17
2.0 & "Agile Web Dev..." book
Just running through the first little project (depot) in ''Agile Web
Development with Rails''. It isn''t scaffolding like it says it should
in the book.
After running:
>rails -d mysql depot
then SQLing:
drop table if exists products;
create table products (
id int not null auto_increment,
title varchar(100) not null,
description text not null,
image_url varchar(200)
2007 Sep 01
2
@content_for_layout or changing default fields on "new" page
Hi all,
I test my small Rails apps using SQLite3, but I think the problem
appeares in every type of database.
.
When I create table and scaffolding apps, a HTML view is based on
columns types. Everything is OK until I want to change preconfigured
behaviour.
.
I created table with a column of type INTEGER, but I wanted to display
check box instead of text field and then save 0 or 1 in database.
2006 Mar 09
8
Problem with scaffolding and table name
Hello, i''m new in ruby rails framework. I have the following problem. I
try to create a scaffold
for a certain model of my db, but since ruby rails doesn''t assume the
table name corectly (its incidents_reported )
i get errors ....
Besides renaming the table :) is there a way to ''tell'' ruby rails the
name of the table?
I haven''t been able to find any
2008 Nov 08
8
scaffold not working like i hoped......
Hi:
i''ve tried this on three macs (tiger, panther, etc).. and my ROR is up
to date on each.
My models and controllers aren''t displaying all my mysql db fields.
When I run script/generate scaffold Planner ... it builds the
controller, model, and all the rest.
When I go to test the app and new controller, now called planners no
content is listed... and all I ever get is the
2006 Oct 12
7
Evil Scaffold
I read the Amy Hoy''s presentation on why scaffold is not a good thing for beginners. For admin
application, is it ok to use scaffold?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to
2006 May 03
5
Multiple Scaffolds
I''d like to create scaffolds for each of the tables in my database, but
would like to access them below the path: localhost:3000/admin
For example localhost:3000/admin/table1
localhost:3000/admin/table2
Where table1 and table2 would be the controller names respectively,
calling their own list.rhtml, show.rhtml, edit.rhtml, etc..
Any recommendations on how/where to
2013 May 03
1
MANOVA summary.manova(m) :" residuals have rank"
Dear All, I am trying to perform MANOVA. I have table with 504 columns(species) and 36 rows) with two grouping (season and location)
Zx <- Z[c(4:504)]
Zxm <- as.matrix(Z)
m<- manova(Zxm~Season*location, data=Z)
when I do summary.aov, I get respond for each species but summary.manova
summary.manova(m) :" residuals have rank" 24<501.
What can it be the reason for this error
2008 May 21
2
Scaffolding and ActiveRecord in Rails 2
Hi,
Is is possible to add this constraint: "null => false" and "limit => 45"
like below:
create_table :movie do |t|
t.string :name, :null => false, :limit => 45
end
...just by using this kind of scaffold command (on Rails 2)?
$ ruby script/generate scaffold Movie name:string
Thanks,
D.
--
Posted via http://www.ruby-forum.com/.
2012 Jul 05
1
iPhone or iPad support
Hello,
I'm asking for a hint.
Here is my problem:
I have some web servers (LAMP) I want to administer from main office, home (dynamic IP) , iPad and Laptop with 3G connection (roadwarrior).
I was thinking of creating a VPN between servers , in this way I could connect securely and easily to server ports (es. Mysql ) without opening the firewall.
I am starting to play with Tinc because
2010 Jul 04
3
Generated By handling CRUD Scaffold
Good afternoon.
I have two questions:
First question:
Can be defined at the time that I''m generating the scaffold the size
of
a string?
For example name:string (50)?
Second question:
I wonder how to proceed correctly to include new
fields starting at a CRUD generated by scaffold.
Example:
First step (I use):
script/generate scaffold User name:string login:string
Second step (I add
2006 Sep 06
1
Changing Scaffold
Hi,
I am starting a project in rails and I wish to change scaffolding.
I''ve already done some changes like prepare all texts for locale. Now
I am wishing to change the way it generates the _form partial. Could
someone give some guideline so I can study such thing?
I saw "template_for_inclusion" in form.rhtml but couldn''t find out
how to change it.
Being more
2007 Mar 13
2
create form from db
I think I have a rather simple question:
I generate forms rather regularly. I would like to make the process as
efficient as possible and would rather generate the markup from the
database much like script/generate scaffold does. My question is
this: is there a rake task or something that will take the schema of a
db as input and create a _table.rhtml file?
Thanks in advance,
Bryce
2007 Jan 18
8
How can I find out which attribute is screwing up pluralize/singularize?
Hey there :)
I''m creating this app on top of a legacy database, that has a mixture
of auto_inc ids, non-''id'' named pks, non-integer-pks, foreign keys that
end in _code instead of _id, etc.
I have the model working great in the console, where I can create any
modeled object and reference other objects without issues.
However, I''m running into problems with