See inline - I’ll do my best to answer.
On Tue, Oct 14, 2008 at 4:08 PM, Peter K. <
[email protected]> wrote:
Hi,
I’ve been googling and going through the forum, and I can’t find the
answers so some stray questions.
A) If I have a render :partial is there a way to get rid of the trailing
newline? <%- and -%> don’t work. Is the
an essential part of the
partial?
trainling newline? like in your source code? or when you look at the
page?
B) People say that the mysql tables get kinda messy sometimes and that
they
need to be reinitialized every once in a while. Frankly, that kind of
talk scares me. But what are the steps for reinitializing?
I have no idea. Hasn’t really been a problem here. Sounds like FUD.
However
you don’t have to use MySQL.
You can use PostgreSQL, Oracle, MS Sql Server, whatever works best for
you.
I have a problem where I added the has_many and belongs_to lines fairly
late in the game, and I am worried that somehow the scaffolding isn’t
paying attention to them.
Scaffolding doesn’t care about associations, and it’s really not meant
to be
anything but a learning tool.
I have an object that has_many As and
has_many Bs. It gives me no problem with the As, but when it tries to
find the Bs, give an error.
The error says:
uninitialized constant SpreadType::Abstractleg
I don’t have any irritating pluralization or nothin.
Show your code - both models with names and associations, and also your
database table names and field names for both.
Generally, if project has_many :tasks, and task belongs_to :project,
then
the tasks table would have a project_id column. The belongs_to
declaration
goes in the model whose table contains the foreign key.
I am running on Debian Linux.
- I also get a scary error when I try to install the ruby-gems
debugging package. Should I just switch OSes? What is the VERY BEST OS
for doing ruby work?
Debian is a fine OS, but I don’t know how you installed things. Its
packages
for Ruby might be out of date. Ubuntu is a good distro for development.
I’ve
used Ubuntu, Windows, and Mac, and I prefer the Mac OS for Rails
development. Not going to get into the reasons because I don’t want to
start
a holy war. But given that your installation has recent versions of Ruby
(ruby -v should report 1.8.4 or higher, preferably something in 1.8.6 or
so)
then you should be fine.