Displaying 3 results from an estimated 3 matches for "profile_controller".
2006 Apr 28
4
Call for patterns...
...s wondering if anyone more experienced could help me to find a good
pattern for two things:
1. How to group controllers. Example:
We have an admin panel with:
user_managment_controller.rb
priv_managment_controller.rb
widget_controller.rb
User panel with:
mystuff_controller.rb
mytags_controller.rb
profile_controller.rb
And frontend with:
widget_controller.rb
etc...
How do I group those controllers? Should I put them in subdirectories?
Does rails support this automagically?
and
2. I have a model/table Widget with fields a,b,c,etc.
Lets say guest can edit fields a,b
users: a,b,c,d
moderators1: a,b,c,d,e,f,g...
2008 Dec 09
4
HABTM checkboxes insert but don't delete
I have a problem related with the HABTM relationships with checkboxes.
I''ve got a profile and a service model, both related with
has_and_belongs_to_many.
The problem is that i can insert new data in the profiles_services
table, however, i cant delete already existing data.
What could be the problem?
--~--~---------~--~----~------------~-------~--~----~
You received this message
2007 Oct 15
5
Very simple code throwing "uninitialized constant" error
This code works on an older version of Ruby and Rails but not with
Ruby 1.8.6 and Rails 1.2.5. The code is so simple that I can''t figure
out where the problem is.
profile_controller.rb
class ProfileController < ApplicationController
def show
@profile = Profile.find_by_school_id(params[:id])
end
end
-----------------------------------------------------------
profile.rb
class Profile < ActiveRecord::Base
belongs_to :school
belongs_to :profile_type
translates :te...