Forum: Ruby on Rails scaffold.css

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Newbie (Guest)
on 2006-04-18 10:41
Hi there,
I have been working on Rails applications for sometime and lately trying
my hands on beautification of the same.
Now the problem that I am facing in here is whatever design or layout I
try to apply to a particular application is visible to the rest of the
applications also!
I mean...I am not able to apply different designs to different
applications.
If anybody could help.
Thankyou.
Jeff C. (Guest)
on 2006-04-18 10:49
Newbie wrote:
> Hi there,
> I have been working on Rails applications for sometime and lately trying
> my hands on beautification of the same.
> Now the problem that I am facing in here is whatever design or layout I
> try to apply to a particular application is visible to the rest of the
> applications also!
> I mean...I am not able to apply different designs to different
> applications.
> If anybody could help.
> Thankyou.

Each of your Rails applications should have its own directory structure,
its own public/ directory, and its own public/stylesheets/scaffold.css.
There shouldn't be any way for different applications to share that
file.

Also, you can change the name of "scaffold.css" and include whichever
CSS files you need to in your layout.

Jeff C.man
Newbie (Guest)
on 2006-04-18 10:53
Jeff C.man wrote:
> Newbie wrote:
>> Hi there,
>> I have been working on Rails applications for sometime and lately trying
>> my hands on beautification of the same.
>> Now the problem that I am facing in here is whatever design or layout I
>> try to apply to a particular application is visible to the rest of the
>> applications also!
>> I mean...I am not able to apply different designs to different
>> applications.
>> If anybody could help.
>> Thankyou.
>
> Each of your Rails applications should have its own directory structure,
> its own public/ directory, and its own public/stylesheets/scaffold.css.
> There shouldn't be any way for different applications to share that
> file.
>
It does..every aplpication has its own directory structure, by no way
are they following a common structure.
I doubt!
> Also, you can change the name of "scaffold.css" and include whichever
> CSS files you need to in your layout.

Yeah..this can be though about. Lemme give it a try.
>
> Jeff C.man

Thanks.
Newbie (Guest)
on 2006-04-18 11:00
Newbie wrote:
> Jeff C.man wrote:
>> Newbie wrote:
>>> Hi there,
>>> I have been working on Rails applications for sometime and lately trying
>>> my hands on beautification of the same.
>>> Now the problem that I am facing in here is whatever design or layout I
>>> try to apply to a particular application is visible to the rest of the
>>> applications also!
>>> I mean...I am not able to apply different designs to different
>>> applications.
>>> If anybody could help.
>>> Thankyou.
>>
>> Each of your Rails applications should have its own directory structure,
>> its own public/ directory, and its own public/stylesheets/scaffold.css.
>> There shouldn't be any way for different applications to share that
>> file.
>>
> It does..every aplpication has its own directory structure, by no way
> are they following a common structure.
> I doubt!
>> Also, you can change the name of "scaffold.css" and include whichever
>> CSS files you need to in your layout.
>
> Yeah..this can be though about. Lemme give it a try.

DIDN'T WORK!
:(
I am surprised why is this happening..even after different names to the
css!!!

>>
>> Jeff C.man
>
> Thanks.
Jeff C. (Guest)
on 2006-04-18 11:17
Newbie wrote:
> Newbie wrote:
>> Jeff C.man wrote:
>>> Newbie wrote:
>>>> Hi there,
>>>> I have been working on Rails applications for sometime and lately trying
>>>> my hands on beautification of the same.
>>>> Now the problem that I am facing in here is whatever design or layout I
>>>> try to apply to a particular application is visible to the rest of the
>>>> applications also!
>>>> I mean...I am not able to apply different designs to different
>>>> applications.
>>>> If anybody could help.
>>>> Thankyou.
>>>
>>> Each of your Rails applications should have its own directory structure,
>>> its own public/ directory, and its own public/stylesheets/scaffold.css.
>>> There shouldn't be any way for different applications to share that
>>> file.
>>>
>> It does..every aplpication has its own directory structure, by no way
>> are they following a common structure.
>> I doubt!
>>> Also, you can change the name of "scaffold.css" and include whichever
>>> CSS files you need to in your layout.
>>
>> Yeah..this can be though about. Lemme give it a try.
>
> DIDN'T WORK!
> :(
> I am surprised why is this happening..even after different names to the
> css!!!
>
>>>
>>> Jeff C.man
>>
>> Thanks.

Are you sure you're talking about different Rails applications?

A Rails application always has a standard directory structure, and it
always has a public/ directory, and a public/stylesheets directory.  One
Rails application doesn't really have the ability to reach out of its
own public/ into the public/ directory of another application.

And you're running multiple Rails applications on your home computer?
Did you start each application with "ruby script/server"?

If you could describe a little more about each application, and how you
made it, that might make things clearer.

For example, to make a Rails app called "blog", I'd type "rails blog"
and it would create the directory structure for that application.

Then I might change directories and type "rails cookbook" to make a
cookbook app.

To run the blog app I'd go into its root directory (C:\blog\ for
example) and type "ruby script/server".  To run the cookbook I'd switch
to C:\cookbook\ and type "ruby script/server", but I wouldn't be able to
run both at the same time without specifying which port for WEBrick to
run on, otherwise I'd get an error message.

Does this sound like what you're doing?

Jeff C.man
Newbie (Guest)
on 2006-04-18 11:40
>
> Are you sure you're talking about different Rails applications?
>
> A Rails application always has a standard directory structure, and it
> always has a public/ directory, and a public/stylesheets directory.  One
> Rails application doesn't really have the ability to reach out of its
> own public/ into the public/ directory of another application.
>
> And you're running multiple Rails applications on your home computer?
> Did you start each application with "ruby script/server"?
>
> If you could describe a little more about each application, and how you
> made it, that might make things clearer.
>
> For example, to make a Rails app called "blog", I'd type "rails blog"
> and it would create the directory structure for that application.
>
> Then I might change directories and type "rails cookbook" to make a
> cookbook app.
>
> To run the blog app I'd go into its root directory (C:\blog\ for
> example) and type "ruby script/server".  To run the cookbook I'd switch
> to C:\cookbook\ and type "ruby script/server", but I wouldn't be able to
> run both at the same time without specifying which port for WEBrick to
> run on, otherwise I'd get an error message.
>
> Does this sound like what you're doing?
>
> Jeff C.man


YES Jeff!
I am not so new after all.. :D
I know all this.
But thanks sooo much, I guess I am doing something really stupid.
Lemme fix it up myself.
If I need anything more, I know whom to ask ;)
Thankyou.
Newbie (Guest)
on 2006-04-18 11:47
Newbie wrote:
>
>>
>> Are you sure you're talking about different Rails applications?
>>
>> A Rails application always has a standard directory structure, and it
>> always has a public/ directory, and a public/stylesheets directory.  One
>> Rails application doesn't really have the ability to reach out of its
>> own public/ into the public/ directory of another application.
>>
>> And you're running multiple Rails applications on your home computer?
>> Did you start each application with "ruby script/server"?
>>
>> If you could describe a little more about each application, and how you
>> made it, that might make things clearer.
>>
>> For example, to make a Rails app called "blog", I'd type "rails blog"
>> and it would create the directory structure for that application.
>>
>> Then I might change directories and type "rails cookbook" to make a
>> cookbook app.
>>
>> To run the blog app I'd go into its root directory (C:\blog\ for
>> example) and type "ruby script/server".  To run the cookbook I'd switch
>> to C:\cookbook\ and type "ruby script/server", but I wouldn't be able to
>> run both at the same time without specifying which port for WEBrick to
>> run on, otherwise I'd get an error message.
>>
>> Does this sound like what you're doing?
>>
>> Jeff C.man
>
>
> YES Jeff!
> I am not so new after all.. :D
> I know all this.
> But thanks sooo much, I guess I am doing something really stupid.
> Lemme fix it up myself.
> If I need anything more, I know whom to ask ;)
> Thankyou.


Hey Jeff!
I fixed it up.
Changing names for css helped.
Thanks.
This topic is locked and can not be replied to.