search for: palbergstrom

Displaying 20 results from an estimated 25 matches for "palbergstrom".

2006 Jun 13
5
Can RoR handle a lot of traffic?
And compared to PHP? -- Posted via http://www.ruby-forum.com/.
2006 Aug 17
4
Migration newbie
In an migration file there is one up and one down method. Below is from Agile Web Development with Rails: class CreateOrderHistories < ActiveRecord::Migration def self.up create_table :order_histories do |t| t.column :order_id, :integer, :null => false t.column :created_at, :timestamp t.column :notes, :text end end def self.down drop_table :order_histories end end Why is there a drop
2006 Jul 07
2
How does layouts work?
When creating a scaffold you get a layout file. How does it work? I thought I would find the var @content_for_layout in the controller, but I didn''t. Where is layouts defined or controlled? -- Posted via http://www.ruby-forum.com/.
2006 Jun 14
13
A good tutorial
Are there any other tutorial than "Agile Web Development with Rails" that you can suggest? So far I can''t say that RoR has been easy to learn. :-) -- Posted via http://www.ruby-forum.com/.
2006 May 24
5
Starting on the Ruby Rails path
Hi all, I''m a web designer/-developer. I found Ruby and Ruby on Rails, and as I can understand (for now) this is what I''ve been looking for. I''m really exited about this. Prior to this I''ve used Lasso and PHP. But a few questions (sitting on Mac OS 10.4.6). I tried to install according to this:
2006 Jun 07
10
RoR with Apache2 - performance?
How is the performance running RoR with Apache2 compared to running it with PHP? -- Posted via http://www.ruby-forum.com/.
2006 Jun 07
16
How dows RoR work?
This is so frustrating. Is RoR that easy to learn or is it hype or is it just me? I wonder how many newbies like me are surfing the docs trying to get a clue of the basics. Every tutorial I find is much the same, and seems to skip the fundmental parts. How should you understand the Ruby API http://api.rubyonrails.org/? What is < ActionController::Base? Can''t I set a cookie under
2006 Jul 06
5
What is protected?
In http://www.aidanf.net/rails_user_authentication_tutorial there is the string/method protected in the model. What does it do? Can''t find that in http://api.rubyonrails.org/. -- Posted via http://www.ruby-forum.com/.
2006 Jul 07
1
Style on _fields
How can I modify the style of a RoR field like text_field or password_field? I can use input in css, but how do I add a class? -- Posted via http://www.ruby-forum.com/.
2006 Jun 07
1
What is class TestController < ActionController::Base
What are the different parts of; class TestController < ActionController::Base? I look at the http://api.rubyonrails.org/ and try to understand but I don''t. Could someone give me a hint? I get the part of Test being the "folder", def and all that, but I can''t find an explanation of the basic stuff. -- Posted via http://www.ruby-forum.com/.
2006 Jun 07
4
Table names
Can I use the table name "adm_users" (mysql)? Will that give the model name "adm_user"? Or should it be "admusers" and "admuser"? -- Posted via http://www.ruby-forum.com/.
2006 Jul 14
6
Don''t understand :: in ActionController::Base
Maybe this should apply to Ruby forums directly, but I''ll try here. I understand the concept of classes and subclasses thanks to the excellent "Programming Ruby - The Pragmatic Programmer''s Guide". However, I don''t understand what :: signify in terms of inheritance, parent and child in e.g. ActionController::Base -- Posted via http://www.ruby-forum.com/.
2006 Jun 15
6
[OT] Tables VS divs for form layout.
I''ve been using tables to get my forms to line up. ( I have usually one column for labels, and a column for values ). Should I be using divs instead? I''ve been reading some CSS design books lately. They tend to recommend divs over tables for general page layout stuff. But, what about the forms elements? What''s the ''best practice'' in this regard?
2006 Jun 11
47
Ruby on Rails and CakePHP Comparison
>From a development standpoint, what are the features that make Ruby on Rails a better choice compared to CakePHP? -- Posted via http://www.ruby-forum.com/.
2006 Jul 07
1
Add_column not working
I try to add a column using migration in the table tests with the name namn as a string. Doesn''t work. Any idea why? def self.up add_column :tests, :namn, :string end -- Posted via http://www.ruby-forum.com/.
2006 Jun 20
1
Templates in scaffold
How can I make my own or modify templates in scaffold? -- Posted via http://www.ruby-forum.com/.
2006 Jun 21
0
Including custom files
I understand RoR better and better.:-) Particularly since I read "Mr. Neighborly''s Ruby and Rails" (which I can recommend to newbies like me). But a few questions: I want to have a dynamic menu, displayed depending on group belonging, included in my layout. I guess I can make a separate file and use file.read to include it. Where do I keep that file in the system, does it
2006 May 24
1
Working with css
How do you work with css in Rails? Do I use it in the view-pages, the normal way? Or can a modify the predefined methods, like text_field()? -- Posted via http://www.ruby-forum.com/.
2006 Jul 06
5
What is require ''digest/sha1''?
In http://www.aidanf.net/rails_user_authentication_tutorial there is a string called require ''digest/sha1'' in the model. What does it do? Everything else is well explained besides that. -- Posted via http://www.ruby-forum.com/.
2006 May 29
6
Radrails doesn''t create files via Eclipse
I can''t get Eclipse to create the files for a new Rails project in Eclipse. It works using the terminal. What could be wrong? -- Posted via http://www.ruby-forum.com/.