Displaying 20 results from an estimated 80000 matches similar to: "conceptualizing help for web application"
2006 May 31
3
detecting changed data
I am working on an application where there are many different screens to
access the data in a particular record/row. I have links to each data
entry screen at the top. Is there a way to detect whether the current
hash has been changed from the stored record so I can prompt the user if
they attempt to change screens without having saved their changes to the
data?
Craig
2006 Jul 17
7
Who owns the web application after it code''s distributed?
Let''s say I''m building a "to-do" list application using Ruby on Rails. I
decide to sell it to a customer, and distribute the source code files to
him.
Can I then restrict the user from distrubting the files by creating a
license that prohibits distribution? That is, is it possible to create a
"single-user" license?
Or, am I limited to distributing the
2006 Jun 04
3
link_to tool tips
I think they are called tool tips...
I have view code that looks like this...
<%= link_to ''I'', :action => ''edit_innoculations'', :id => personnel %>
Is there an option (I don''t see it in api) to have tool tips for a
link_to ?
Craig
2006 Feb 14
2
apache virtual host
I don't ever do this...
Shouldn't this be enough to set up a virtual server in apache?
I did create an entry in /etc/hosts and in dns for this fqdn
it still gives me the contents of /var/www/html and
not /home/craig/ruby-db/th-db/public
<VirtualHost *>
DocumentRoot "/home/craig/ruby-db/th-db/public"
ServerName app-server.tobyhouse.com
<Directory
2006 May 29
5
Find last
This seems rather ugly. I am thinking that this needs to be in the model
but I am looking to obtain the date for a tb test...
>> @tb = Innoculation.find(:all,
:conditions => ["personnel_id = 1 AND innoc_type = ''TB''"],
:order => ''innoc_date DESC'')
=> [#<Innoculation:0xb77ed234 @attributes={"id"=>"1",
2006 Mar 26
17
activeldap
Obviously I am missing something and I don''t know what it is...
I am following the instructions at
http://rubyforge.org/docman/view.php/381/114/activeldap_rb.html
and also here...
http://wiki.rubyonrails.org/rails/pages/HowtoAuthenticateViaLdap
my model looks exactly like this...
class LdapUser < ActiveRecord::Base
ldap_mapping :dnattr => ''uid'', :prefix
2006 Jun 19
9
index columns in postgres
I am in a holding pattern while client decides upon changes and so I am
working some things out internally so it seems to me that indexing
frequently searched table fields might be useful.
I am using postgres and via postgres, I have added an index to one of my
tables whose index is the same name as the column name. The ''find''
screen I am using this to judge populates a number
2006 Feb 07
7
select list error - following Agile guide
I would swear that I am tracking exactly the method used in Agile
book...
TypeError in Placements#edit
Showing app/views/placements/_form.rhtml where line #33 raised:
wrong argument type String (expected Module)
Extracted source (around line #33):
30: <tr>
31: <td><label for "type">Type</label></br><%=
32: options = [["Select
2006 Jun 08
1
detecting changed data - retry
I didn''t get much traction on this so I am trying again...
I am working on an application where there are many different screens to
access the data in a particular record/row. I have links to each data
entry screen at the top. Is there a way to detect whether the current
hash has been changed from the stored record so I can prompt the user if
they attempt to change screens without having
2006 Feb 21
8
Validations continued
I simply can''t figure this out. I have been reading and re-reading Agile
book and wiki.rubyonrails.org - all sorts of validation methods and
still, it doesn''t work.
Controller code
def create
@client = Client.new(params[:client])
if @client.save!
flash[:notice] = ''Client was successfully created.''
redirect_to :action =>
2006 Apr 15
8
Migrations - adding a new table and automatically creating records
I want to create table called roles and then populate it with some new
records...This doesn''t work. Is there something I''m missing?
Craig
class AddRightsAndRolesTables < ActiveRecord::Migration
def self.up
create_table :roles do |t|
t.column "name", :string
end
Role.reset_column_information
Role.new :name => "Users Admin"
2006 Feb 08
7
DRY methodology
because I am a grasshopper...
Now that I can sort my ''list''...is there a logical way of not repeating
myself to having essentially the same list view with multiple sorts?
i.e.
def list_cl
# ordered by clients last name
@placement_pages, @placements = paginate(
:placements,
:include => [:client],
:order_by =>
2006 Feb 28
7
multi-page printing moving on
I have some nice forms done using stylesheets. I currently have them
displaying on screen and the user could simply just print.
This works when there is only one form (facility) to be viewed/printed.
I have created the looping code necessary to print for all facilities
but that doesn''t work for me because each page uses stylesheets with
<div> that do absolute positioning and thus
2006 Feb 23
5
layouts
I created a controller called reports, for which I didn''t have any model
or tables.
I wanted to use a menu/layout structure similar to all my other
models/controllers and added a layout named reports which then gives me
the menu/layout structure but is also now part of all my reports.
That isn''t gonna work so I renamed reports.rhtml to reports_forms.rhtml
(still inside my
2006 Feb 03
4
contoller code mysteries
In my controller...this code works
def list2
first_name = params[:client][:first_name]
@myclients = Client.find(:all, :conditions =>
["first_name = :first_name", {:first_name => first_name}])
end
this code doesn''t...
def list2
first_name = params[:client][:first_name]
if first_name
searchstring = ''["first_name =
2010 Aug 17
5
apache rewrite
Is there some easy way to rewrite just the base URL to another URL but
leave all other URL's unmolested?
i.e.
http://www.example.com = rewrite to another URL
http://www.example.com/files = deliver from the assigned subdirectory
obviously this...
Redirect / http://www.other_url.com
redirects everything
and I don't want /files to be redirected
Craig
--
This message has been scanned
2003 Dec 18
1
Samba 3 PDC with LDAP - Error when changing userpassword from windows
no, i did it
but, i think if i didn't it, I cannot join Machine while addind machine
account on the fly with Samba...
----- Original Message -----
From: "Craig White" <craigwhite@azapple.com>
To: <s.jousse@free.fr>
Cc: <samba@lists.samba.org>
Sent: Thursday, December 18, 2003 6:09 PM
Subject: Re: [Samba] Samba 3 PDC with LDAP - Error when changing
userpassword
2006 Mar 25
0
Linux box talks to XP Pro, XP Pro permissions deniedon LinuxBox
Let's keep this on list please...
See if you can connect as samba user from samba box...
smbclient -L WHATEVER_YOUR_SERVER_NAME -U Administrator
smbclient -L WHATEVER_YOUR_SERVER_NAME -U Michael
but note - casing is rather odd and might be your problem. UNIX is case
sensitive but Windows/Samba is not case sensitive...
therefore Samba will see 'Michael' as 'michael' and
2006 Feb 21
3
controller subroutines
Trying to find this documented in the Agile book and don''t see an
appropriate example so I am confused.
I have a method in my controller...
def performfind
myfind = ["Select * from clients where ..."]
even more...complicated find here
end
and within the controller, I want to use the ''myfind'' string
How do I get the string back from the method