I generally do not use the rails built-in scaffolding generators. They are from
the early days of rails and while they may have some usefulness, they do not
save me time in the long run.
One table that contains over 100 column fields doesn't sound like a good
database design -- maybe you shoul
Although old, ActiveScaffold is still an excellent, efficient, unobtrusive,
scalable, and highly effective solution to build out lots of quick list views
(complete with searching, sorting, and pagination) and CRUD actions.
Check out: http://activescaffold.com
The front-end isn't very aestheti
Hi, all.
I'm relatively new to Rails though I have completed the Depot app in the
book 'Agile Web Development with Rails 4' & I'm looking for advice.
I'm attempting to construct RailsBootstrap & have used Passenger to
install nginx & have installed the rails gem & have issued the 'rails
new' comm
whan you scafolded you didnt spefified the field of the database , the
scafold creates empty views in that case , i think you didnt pass the fields
because the scaffold fills the migration with them if you do, since i see
the migration is empty that mians you did this
script/generate scaffold p
If i understand it right, in new scaffold need to be specified each
column from the existing db?
In my case:
ruby script/generate scaffold Post title:string body:text
author:string status:string created_at:datetime updated_at:datetime
And it will migrate the outside rails made db and will be work
he old code was extracted into a
plugin (don't know if it's still maintained):
http://github.com/rails/scaffolding
Fred
--
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-t
edit:
db/model names are plural/singular
--
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-t...@googlegroups.com.
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscr...@g
Greetings friends,
i`m experiencing an issue with scaffolding, which i`m unable to
resolve for the moment.
system used:
win7 x64: ruby -v 1.9.1, gem -v 1.3.7, rails -v 2.3.8. mysql 5.1.50,
but downgraded to 5.0.37
win xp x86: ruby -v 1.9.2, gem -v 1.3.7, rails - 3. mysql 5.1.50, but
downgraded to
Scott Le gendre wrote:
Hello all. I've been working through some online tutorials, learning ROR
and have a question on scaffolding. Through the command promt i've ran
the command:
$ script/generate scaffold Albums
[snip]
So, the question is, why isnt it filling out the code I had expected? I
h
On 12 August 2010 18:56, Scott Le gendre wrote:
> Hello all. I've been working through some online tutorials, learning ROR
> and have a question on scaffolding. Through the command promt i've ran
> the command:
>
> $ script/generate scaffold Albums
>
> This created the controllers, helpers, models
On Thu, Aug 12, 2010 at 13:56, Scott Le gendre wrote:
> The problem is that the scaffold command did not create what I had
> expected it to create within my views. It only created partial code.
Did you have a name column in your model?
-Dave
--
Specialization is for insects. -RAH | Have Pun,
Hello all. I've been working through some online tutorials, learning ROR
and have a question on scaffolding. Through the command promt i've ran
the command:
$ script/generate scaffold Albums
This created the controllers, helpers, models, and views.
I have a database table titled "albums" and have
Hello All,
I am using scaffolding but i can not figure out that how to write my own
methods except CRUD. I mean i know how to use CRUD methods but if i
write my own method in my controller and call that from views then the
request is going to show method.
Ok.. the scenario is that have an method
Hi,
I'm developing application that contains many nested models. Can I use
scaffolding command to generate the application nested models instead of
manually creating the complex nested models?
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to t
Hi All,
I’ve got a couple of problems and solutions I’ll try unless I get
guidance for more Rails-like approaches. Details follow.
Thanks is advance,
Richard
I. Problems and possible solutions:
The user CRUD works fine except:
1) When user data is supplied and Create is clicked, the
“suc
I had tried to my best. Since there were no option to specify the
additional parameters. It has to be manually specified in the
migration file.
Revert back me if u find any solution to it.
On Feb 20, 4:57 pm, nfv wrote:
> Hi,
>
> Can anyone explain how to use decimals in Rails sc
nfv wrote:
> Hi,
>
> Can anyone explain how to use decimals in Rails scaffolding ?
>
> When I enter the scaffold command :
>
> ruby script/generate scaffold payment amount:decimal, :precision =>
> 10, :scale => 2 event:string datum:date
>
> nothing happens.
Hi,
Can anyone explain how to use decimals in Rails scaffolding ?
When I enter the scaffold command :
ruby script/generate scaffold payment amount:decimal, :precision =>
10, :scale => 2 event:string datum:date
nothing happens. No error message, no generating of files, nothing.
When I
I am sure many people have asked this already... But I could not find
anything helpful. I am trying to use RoR with an existing database with
tables already defined.
I used script/generate scaffold account
But when I point to localhost:3000/account, no table columns showed up.
The "new account"
Hi, I'm trying to make an app using rails 2.x, but when I try to
generate scaffold it messes up with several errors. For example, I
want to make an scaffold this way, localhost:3000/admin/publisher, but
I don't know how I can generate it;
I was trying to generate it by ./script/generate scaffold
hi , i used the folllwing command to scaffold,
G:\my\webblog>ruby script/generate scaffold webblog id:integer
title:string body
:text created_at:datetime
after when i migrate with the follwing command
rake db:migrate
i got the error as
(in G:/my/webblog)
== 1 CreateWebblogs: migrating
===
I'm starting to get involved with models in rails and so I need to make
sure I understand exactly what I'm trying to do. Let's look at a quick
example:
One table that I will be creating is a rushing_offense table for
football. It has the following columns in the tables:
name (string)
games (fi
Hi Everyone,
I built a scaffold and I'm having trouble getting results properly
formatted. (I need to get the data into multiple columns instead of just
one big column) I can't get all of my CSS to work properly in
scaffold.css, layout/books.rhtml, or the books/index.rhtml.erb Anyways,
maybe you
Thanks David - great article - most illuminating...
Dave
On Dec 1, 5:38 am, "David A. Black" <[EMAIL PROTECTED]> wrote:
> Hi --
>
> On Sun, 30 Nov 2008, Nellboy wrote:
>
> > Agreed, nice post there... The only thing i'd add to that, is that as
> > a Rails beginner-becoming-intermediate, I actual
on Rails scaffolding
Hi --
On Sun, 30 Nov 2008, Nellboy wrote:
>
> Agreed, nice post there... The only thing i'd add to that, is that as
> a Rails beginner-becoming-intermediate, I actually really like the
> fact that you can get something up relatively quickly and then start
>
Thanks David... I'm pretty familiar with that stuff already
thankfully... but cheers for the info... Right now, i'm coming to
grips with what plugins are out there, which ones are the most common/
popular, and how are they best used... I don't want to be relying on
plugins too much, but then again
Hi --
On Sun, 30 Nov 2008, Nellboy wrote:
>
> Agreed, nice post there... The only thing i'd add to that, is that as
> a Rails beginner-becoming-intermediate, I actually really like the
> fact that you can get something up relatively quickly and then start
> hacking away at it to create an app...
Agreed, nice post there... The only thing i'd add to that, is that as
a Rails beginner-becoming-intermediate, I actually really like the
fact that you can get something up relatively quickly and then start
hacking away at it to create an app... I'd also add that unless you
really understand what's
Hi --
On Tue, 25 Nov 2008, Ralph Wood wrote:
>
> For every tutorial that uses scaffolding, there's an article that says
> you shouldn't use it in real websites. Supposedly it just serves to
> "sketch things out quickly", "test database connectivity" and other
> stuff. Some say you're not even su
Ralph:
It works fine. I just stole the generation code from Rails 1.2.3 but
it works fine in Rails 2.x - I have a few things I might want to
change as it goes forward, but I keep my stuff in pretty good shape -
if it's deprecated I'll push a final release that says so in the
readme :)
I'm always
Meh, I'll teach you RSpec if you want, but I''m a bigger fan of
test::unit. Find me on IRC - hoganbp
On Sun, Nov 30, 2008 at 10:06 AM, Bobnation <[EMAIL PROTECTED]> wrote:
>
> On Nov 30, 9:18 am, Robert Walker <[EMAIL PROTECTED]>
> wrote:
>> One thing I discovered about scaffolding, even as a s
On Nov 30, 9:18 am, Robert Walker <[EMAIL PROTECTED]>
wrote:
> One thing I discovered about scaffolding, even as a starting point, is
> that if you every want to use nested resources modifying the scaffolding
> to fit what is needed is more work, and adds more risk, than just
> building what you n
One thing I discovered about scaffolding, even as a starting point, is
that if you every want to use nested resources modifying the scaffolding
to fit what is needed is more work, and adds more risk, than just
building what you need from scratch.
Plus as mentioned you're more likely to write b
That's a good point, Brian. And your form scaffold is a great idea; even
rails' form helpers don't really take the pain out of building forms,
but to think that I could bypass all of that with a simple command is
mindblowing.
One thing, though: Rails is now 2.2, so that you extracted it from R
First, like everything, scaffolding is a tool, a means to an end. It
can be useful, but can also be misused. I can't speak for everyone,
but I hate scaffolding because it keeps people from writing tests.
Scaffolding generates test stubs, but it leaves the controller tests
virtually useless. Wit
> So, the bottom line is that there's nothing fundamentally inept about
> it, and it's all up to how you actually use it, right?
I would personally agree with that. Your mileage will ALWAYS vary
depending on the weather conditions, type of fuel used, people in the
car, and cargo inside but ... wa
anding is better.
I'd capitalize MAY. Other believe that Rails' scaffolding is a very good
way for beginners to begin to become familiar with the Rails way of
structuring code and tests, of getting working code to begin to become
familiar with topics like routing, etc. IMHO, scaffolding
> So, the bottom line is that there's nothing fundamentally inept about
> it, and it's all up to how you actually use it, right?
> --
> Posted viahttp://www.ruby-forum.com/.
With the caveat that Rails beginners may be better off avoiding it
until their understanding is better.
--~--~-~--
[EMAIL PROTECTED] wrote:
> Scaffolding adds things you may or may not want. It's an easy starting
> point. Sometimes I use it when I need a very simple crud interface.
> BUT I never use much of the generated views and I'm careful to delete
> the bits I don't want and change the rest. It also saves
Scaffolding adds things you may or may not want. It's an easy starting
point. Sometimes I use it when I need a very simple crud interface.
BUT I never use much of the generated views and I'm careful to delete
the bits I don't want and change the rest. It also saves a tiny amount
of effort to gener
Feh... pay no mind to the nay-sayers...
I scaffold for proof of concept all the time, then adjust the pieces and
parts to fit the "real" application after I'm sure that's what the users
were asking for (i.e., after they get to tinker with it in my dev
environment).
--
Posted via http://www.ru
For every tutorial that uses scaffolding, there's an article that says
you shouldn't use it in real websites. Supposedly it just serves to
"sketch things out quickly", "test database connectivity" and other
stuff. Some say you're not even supposed to use it and then edit it
later. I don't get why.
Thank you, that's what I was looking for.
On Tue, Nov 11, 2008 at 10:53 PM, Ar Chron <[EMAIL PROTECTED]
> wrote:
>
> When one of my users asks for a new "feature" that involves a new model
> and all the trimmings, I routinely scaffold up the prototype, do as
> little code as I can to make it fit
On Nov 11, 9:53 pm, Ar Chron <[EMAIL PROTECTED]> wrote:
> When one of my users asks for a new "feature" that involves a new model
> and all the trimmings, I routinely scaffold up the prototype, do as
> little code as I can to make it fit in with the application, then bring
> them in for a test dri
When one of my users asks for a new "feature" that involves a new model
and all the trimmings, I routinely scaffold up the prototype, do as
little code as I can to make it fit in with the application, then bring
them in for a test drive on my dev machine.
The scaffolded layouts don't match the
I'm not the best person to answer this, but I would caution you to "be
careful" nonetheless. Sometimes it is better to put in the work in
order to understand exactly how things are pieced together.
Just my thoughts.
On Nov 11, 11:44 am, "Chas Lemley" <[EMAIL PROTECTED]> wrote:
> Is scaffolding i
Is scaffolding in Rails production ready? I've read a few opinions on this,
but most were referring to the original style of scaffolding found in
rails.
Because scaffolding now creates the controller, models, views for me is
there anything I need to watch out for when trying to build upon this to
Hey Everyone,
I wanted to know if I could get some insight on something. I am using
Rails 2.1.2 and for something that needs beyond basic functionality, I
typically generate a scaffold so I don't have to manually create
everything and save some time. Well as you all most likely know, along
with g
48 matches
Mail list logo