similar to: How do you decide what controllers and actions to have?

Displaying 20 results from an estimated 10000 matches similar to: "How do you decide what controllers and actions to have?"

2006 Mar 18
5
How would I get the previous id from the database?
I''m trying to get the id of the previous row prior to what would be input and then rename an uploaded image to that row number. So say the previous row was 19 and the image in that row was named 19.jpg, I''m wanting to name the next uploaded image as 20.jpg since the row that would be added then would be 20. Right now I''ve just got: @new_tutorial =
2006 Mar 09
4
Strange Unit Testing error - newbie question
I''m fairly new to Rails, and I''ve been learning from AGILE WEB DEVELOPMENT WITH RAILS. Everything has been going smoothly until the chapter on Unit Testing, where I''m getting some strange errors. I''m up to page 141 in the Agile book, and attempting to run the test program containing the method test_read_with_hash. The previous tests work properly, but I
2006 Feb 21
6
What do I need to learn Ruby, Rails, JavaScript, AJAX?
So I''ve sort of come to the conclusion that if I wanna get stuff done, I need to either A) Find some dang money and pay people to do it or B) Do it myself. I''m opting for B. Soooo...now I''ve got some programming/technologies to learn. I''m self-employed and I can afford to take a month (or 2) off to totally immerse myself in this and learn how to do it.
2011 Oct 20
2
Agile book apache2.conf: Forbidden You don't have permission to access / on this server.
Appreciate any help - I am working through Agile web development (4.0) and am stuck on the deployment using phusion passenger. I get this: "Forbidden You don''t have permission to access / on this server." when I put depot.yourhost.com in the browser. I have been through various web searches and for file permissions and suggestions to change the <Files> container.
2006 Jun 17
5
Having trouble listing tiers of categories
I have categories and sub-categories in a table called "categories". Every row has a "parent" field to note if the entry is the sub-category of another (never goes deeper than 1 level). So there might be something like this: id | name | parent 1 Dog 0 2 Pug 1 3 Siamese 5 4 Shih Tzu 1 5 Cat 0 6 Wiener Dog 1 7 Persian
2005 Dec 27
2
actions with no views?
In Depot, the demo application in the the Agile book, actions that modify the model such as add_to_cart redirect to another action that has a clear view role, like index, or show_cart, instead of generating the view themselves. This uses an HTTP redirect that goes to the client and returns. Is this an idiomatic way to design the flow in Rails? -- fxn
2006 Aug 16
2
What would the ideal server setup be?
I have one dedicated server for all my various projects (both PHP as well as Rails) and will be getting a second server to run only the Rails apps on. What is the ideal server setup in terms of RAM vs. Processor Speed (more RAM or more processor speed?) and should I use Apace, lighttpd, mongrel, or what? I''ve got the money to afford something pretty solid...just don''t know
2006 Apr 10
8
Advice on Similar Views with Helpers
I have some embedded tables that form different sections of a view. I find that I use the same look for certain ones which means I have to duplicate the same exact table for each section that''s similar. Is there a way to do.. hmm.. well.. kind of like what a layout does using @content_for_layout, but for a partial. Does that make any sense whatsoever? :) OK so here''s some
2016 Jul 07
2
How to have more than on SELinux context on a directory
On 06/07/16 21:17, Bernard Fay wrote: > I can access /depot/tftp from a tftp client but unable to do it from a > Windows client as long as SELinux is enforced. If SELinux is permissive I > can access it then I know Samba is properly configured. > > # getenforce > Enforcing > # ls -dZ /depot/tftp/ > drwxrwxrwx. root root system_u:object_r:tftpdir_rw_t:s0 /depot/tftp/ >
2016 Jul 06
2
How to have more than on SELinux context on a directory
> If I understand well, I could add a type to another type?!?!?! No. The default targeted policy is mostly about Type Enforcement. Quote from the manual: "All files and processes are labeled with a type: types define a SELinux domain for processes and a SELinux type for files. SELinux policy rules define how types access each other, whether it be a domain accessing a type, or a
2018 Dec 26
3
You removed Weboob package over political reasons? Whole Internet laughs at you
On Mon, Dec 24, 2018 at 01:26:15PM -0500, rj coleman wrote: > > > > On Dec 24, 2018, at 10:42 AM, Alice Wonder <alice at domblogger.net> wrote: > > > >> On 12/24/18 7:21 AM, vsnsdualce at memeware.net wrote: > >> Debian is not ruled by the men who actually write the software, but instead women. > > > > *snip* > > > > Can we
2006 Apr 10
6
"Pursuit of Happiness" ? Are you sure ?
I always kind of liked this title (the title of Davids super Rails presentation), but then I saw this quote today: "The pursuit of happiness is a most ridiculous phrase; if you pursue happiness you''ll never find it." by C.P Snow I''d have to agree with this quote. It''s the same as love... go looking for it, and you''ll never find it. Soooo... David,
2006 Apr 07
2
How do you create the first index?
I''m attempting to implement acts_as_ferret, but I haven''t been able to find out how to create the first index. I see the "rebuild_index.rb" file, but it tells me "Uninitialized constant: Content" if I try to run it by itself, and I''m not sure if I can invoke it some other way. Any clues? Thanks, Jeff Coleman -- Posted via
2001 May 14
4
audio/vorbis media type registration
This is the first draft of the audio/vorbis media registration form to be handled to the IANA. PLEASE comment extensively, even minor spelling mistakes etc are to be stamped out of this I hope. A media type for application/ogg (or should it be application/oggsquish?) will be created separately. I would be very happy if someone could supply the 4-letter filetype code used by MacIntosh .ogg files.
2006 Apr 13
7
Complex SQL in paginate command?
Hi all, Is there a way to create pagination with a complex SQL, more complex than the :conditions option will support? I have two databases, houses and images. Houses has_many images, and each Image belongs_to house. I''m creating a search engine for the house records and I''d like to be able to filter out all the houses without any associated images. So far I''m
2018 Dec 24
4
You removed Weboob package over political reasons? Whole Internet laughs at you
On 12/24/18 7:21 AM, vsnsdualce at memeware.net wrote: > Debian is not ruled by the men who actually write the software, but > instead women. *snip* Can we please ban the person who sent that disgusting rant to the list?
2006 Aug 04
8
Demo in rails2.pdf of add_price migration, PostgreSQL 8.1.4
People, I''m looking at the migrate example on p 74 of the rails2.pdf It''s a simple example of using a migration to add a column to the products table. Here is a copy of the migration file named 002_add_price.rb after I generated and then edited it: class AddPrice < ActiveRecord::Migration def self.up add_column :products, :price, :decimal, :precision => 8, :scale
2006 Apr 16
11
RJS templates not found
I am running Rails 1.10 and wanted to check out the RJS templates. Rails doesn''t seem to find them. I did issue the rake comment update_javascripts and that did not correct the problem. RJS is part of 1.1 right? Any ideas? Thanks. -- Posted via http://www.ruby-forum.com/.
2006 Apr 18
6
scaffold.css
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. --
2007 Nov 25
15
Possible Problem with RSpec and
Sorry to be such a pest but I am trying to learn Ruby, Rails and RSpec all at one go and it is a bit overwhelming. I have previously completed the depot tutorial in the Agile Web Dev with rails book and now I am trying do do it again using RSpec. What I would like to know now is why I am getting a rake failure error at the end of every spec:models run. Is this the expected behaviour when a test