Displaying 20 results from an estimated 40000 matches similar to: "Documentation for the built-in generator functions?"
2006 Jan 12
8
Scaffolding support for many-to-many editing (habtm)?
Like with simple table editing, there are also typical ways of how a
user usually interacts with one-to-many or many-to-many relations. For
example, one would show the fields of one row of table1 in the screen
and below a line-by-line view of all associated entries in table2. Then,
one could press an "Edit" button and add or delete rows from table2 to
this entry of table1,
2005 Dec 22
2
Documentation for generate controller
I can find the API documentation, but where is the documentation for the
standard generators. The wiki has 3rd party generators- but I want to
know specifically what generate controller does, and how it differs from
generate scaffold, and what other generators there are.
Where is this succinctly documented?
--
Posted via http://www.ruby-forum.com/.
2013 Apr 15
4
Rails' scaffold controller generator - should it test json format also?
(Forgive me if this is incorrect, because I recognized this initially as
something in Rails 4.0.0.beta1 and have just done a cursory look over the
latest generator code.)
Noticed in Rails 4 that the test generated for a scaffold controller only
tests the html format instead of both html and json:
2005 Jan 29
4
problem with postback generator on 0.9.5
I''m trying to call the postback generator on rails 0.9.5. I''ve
installed the postback tarball into
gems/1.8/gems/rails-0.9.5/generators/postback as it seems like it is
supposed to be. At least, I installed the login generator the same way
and it works. But when I try to run it, I get this:
[carl@e236014 test]$ ruby script/generate postback
2010 Jun 27
0
Rails layout generator not doing what the documentation sais it should be doing?
Hello,
I''ve just started playing around with the Rails 3.0.0.beta and I came
across some seemingly strange behaviour, where I expected:
"In previous versions of Rails, the rails generate scaffold command
would automatically create a controller specific layout, like app/
views/layouts/posts.html.erb, for the posts controller. However this
has been changed in Rails 3.0. A application
2006 Oct 04
0
Generator for In-Place Editing
Anyone know of any generators, plug-ins, etc. that will generate
in-place editing scaffold? I looked about the listed
generators/plug-ins on the wiki but didn''t see anything.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
2006 Jan 18
3
Documentation for scaffold / views
Apparently a scaffold creates at least one instance variable for views
to use, and if I override the scaffold then I must also explicitly
create that instance variable for the view. I''d like to know exactly
what work is performed by the scaffold so that I can know this when
over-riding the view. (OR, is it that the controller makes these
variables available by default?..)
EXAMPLE:
2006 Mar 03
0
AR::Base.pluralize_table_names doesnt work with scaffold generator, right?
Hi!
The script/generator scaffold for models doesnt respect (source in) this
config/environment.rb setup, right?
Because I can put in there ActiveRecord::Base.pluralize_table_names =
false but when I run a command like
ruby script/generate scaffold model Something
then it throws an error saying that my database scheme doesnt have a
Something. However there is a table called something.
If I
2010 Aug 06
0
adding options to erb scaffold generator to include or skip custom views / templates
created a small patch.. looking for feedback / etc..
https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/5319-adding-options-to-erb-scaffold-generator-to-include-or-skip-custom-views-templates#ticket-5319-2
When I was working on customizing the erb scaffold generator to match
the style and design I wanted to use by creating custom templates in /
lib/templates/erb/scaffold I found
2013 May 03
0
Moving plural detection and --force-plural option to models generator
Hi all,
I talked to Aaron briefly about this at RailsConf, but I just wanted to
bring this up here before I start working on it in case anyone objects.
I will be looking into moving the "Plural version of the model detected,
using singularized version. Override with --force-plural." warning and the
associated flag into the model generators. Currently this is only in the
resource (and
2008 Jan 18
1
Announcing: Ext Scaffold Generator Plugin for Rails
The Ext Scaffold Generator Plugin can be viewed as a drop-in
replacement for Rails'' standard Resource Generator. Accepting the very
same options, it will generate views using data grid and form
components from the Ext JS Javascript GUI framework as well as a
controller acting as an Ext-compatible JSON web service. The generated
code can be used as a starting point for further
2006 Sep 08
2
rails equivalent to symfony admin generator?
I''m an experienced PHP programmer (don''t know Ruby yet), and I''m playing
around with Symfony (PHP MVC framework similar to Rails) and I found
myself asking if there''s really any reason to use it over Rails.
From what I''ve seen just about every feature in Rails is superior except
one very important thing - Symfony''s admin generator. This is
2007 Jul 26
0
rspec_on_rails magical incantations
I ran into something really puzzling today. I don''t know exactly why
it''s happening, but I thought I''d share my experiences.
I started a dummy app just to test an idea outside of the context of
my real work today. So, I quickly get things started:
* rails junk
* cd junk
* ruby script/plugin install svn://rubyforge.org/var/svn/rspec/tags/
CURRENT/rspec
* ruby
2006 Mar 29
4
Scaffold generator: create vs. new
Can anyone supply me with a simple, succinct explanation of what the
difference is between the "new" controller and the "create" controller
that the scaffold generator produces?
I run:
> script/generate scaffold modelname controllername
And now I need to do some work inside the controllername.rb file. For
example, pulling a list from another database table to supply
2006 Aug 10
8
Problem installing rails with gems
I have ruby 1.8.4 and gem 0.8.11 installed on Ubuntu Dapper.
Now I wanted to use gem to install rails (as documented in the wiki).
That worked fine, but afterwards, the command rails is not found.
It seems that the gem install command does not place the binaries in the
apropriate directory.
The instruction pages at the Rails websites show that one cun simply
type "rails" after the gem
2006 Oct 28
2
where is the "record" method??? i.e. which is used in generators (e.g. scaffold_generator.rb)
Hi,
Anyone know where the "record" method is defined. Its used in generators
like in the scaffold generator. An extract from it is below (taken from
scaffold_generator.rb):
def manifest
record do |m|
# Check for class naming collisions.
m.class_collisions controller_class_path,
"#{controller_class_name}Controller",
2006 Jan 06
8
How do I write a generator?
I''d like to take some advice and write a generator to change the
scaffold.css. How do I do that? I looked on the wiki and googled it
but have not found anything yet.
Any help would be much appreciated.
bruce
2006 Jan 12
3
Introspecting Active Record Associations
Hi,
I''m looking into write scaffold generators that will, amoung other
things, scaffold active record associations (eg. generate select
boxes for belongs_to where you can choose a parent object) for quicker
prototyping. But...
My question is: Is there anyway of finding out what associations
exist from examining the lodel classes themselves or indeed any other
way of finding out this
2011 Jun 14
2
scaffold_controller generator
Hi:
I''m new to RoR and I apologize if this is a dumb question but I''ve
read the guides, searched the archives and found nothing.
If I generate a model object and then the scaffold_controller the
result is different than just running the scaffold generator (the
_form partial has no fields in the first case).
I did not expected this and I wanted to first create the models, tweak
2004 Aug 09
3
built-in Sweave-like documentation in R-2.x
Hi devels,
i did not find at this page:
http://developer.r-project.org/ideas.txt
any ideas concerning incorporating documentation
possibilities (say, Sweave-based) into R-scripts.
Was it discussed already?
(If discussed, then what is the decision/conclusion then?)
thanks,
Valery