Displaying 20 results from an estimated 367 matches for "crud".
2007 Mar 24
1
spec''ing metaprograming & rails CRUD
For edge rails there is a Crud generator. There is also a CRUD
controller that is out there from which you can inherit your other
controllers (see http://geekonomics.blogspot.com/2006/07/crud-and-
shared-controllers.html)
This got me thinking about Crud controllers in general. As far as I
know, the generator can'...
2006 Aug 11
2
Shouldn''t CRUD be CRUDS?
With most models, almost always I find myself writing Search/Find
actions. When I view a Listing of a model, I want to look at another
record or set of records. How nice it would be if I can do a
query-by-example while viewing a Listing, or during Show/Edit/Create.
Would be nice if Search becomes another act in the scaffolding magic.
This wish has been expressed here before. Since then, has
2010 Apr 06
2
respecting original matrix dimensions
...a single row/column of the original matrix. However, whenever I pull
out only a single row/column, R returns a row vector, but often this
will break my matrix algebra. Is there any *easy* way to get R to
remember what the single row/column came out of and format the return
appropriately?
Example:
crud <- matrix(c(1,2,3,4,5,6,7,8,9,10,11,12),nrow=3,ncol=4)
tmp <- crud[,1]
#tmp gives: [1] 1 2 3
what I actually want is:
tmp <- crud[,1]
#tmp gives
[,1]
[1,] 1
[2,] 2
[3,] 3
I don't see an easy way to do this beyond using matrix and supplying
the correct matrix dimensions...
2006 Aug 02
1
Use Non CRUD with Simply RESTful
...say I
have a page that is separated into sections with tabs at the top. I want
to replace divs on the page with RJS.
Now typically before I''d have a method on the controller that rendered
an RJS template to accomplish this.
I''m not sure how to go about doing this with the new CRUD paradigm. I
can''t seem to use a regular link_to_remote tag as I get a routes error,
and I''m not sure what the syntax is to call a non CRUD method with
link_to_remote passing in an id param.
Any help would be great.
Thanks.
--
Posted via http://www.ruby-forum.com/.
2006 Jul 28
8
Building a Search Page as part of CRUD
I''ve been experimenting with Rails over the past couple of days and
have come across something that seems harder than it should be. In
previous frameworks I have used (WebObjects, php) a full search page
(which leads into a list view populated with search results) was part
of the CRUD that was either dynamically or statically created after
specifying table/object schema. In WebObjects this was a very cool
feature of DTW (direct to web), in php I rolled my own crud generator
with searching capabilities even though I''m sure plenty exist already.
I''ve looke...
2006 Nov 04
0
How do CRUD and REST work for a wizard-style application?
I''m rewriting an application with the intention to use the elegant
CRUD and REST design principles as outlined by DHH in his RailsConf
Keynote[1].
The question is: how do you use those principles for an application
that is of a sequential nature?
The application works much like an MS Windows wizard: user begins at
screen foo. After doing (or not) some stuff in screen...
2007 May 04
11
spec template for CRUD?
Hello,
Has anyone already come up with a set of shared behaviours that
someone could leverage when adhering to a CRUD concept, with respect
to controllers?
Relatedly, it would be nice if there were a way to share generalized
behaviour specs.
-Chris
2006 Aug 14
1
Testing CRUD/Rest Controllers
I have a few simple controllers doing plain, simple crud in a standard way.
now it''s not very DRY to write a funtcional test for each controller, since
they are all doing the same (apart from a few variable names, but that could
be easily inflected or so).
is there a way to do this?
e.g. does inheritance work with tests, so i define a base test...
2006 Jul 20
1
Model CRUD via web services
Hello,
I was wondering if there was any automated (may be scaffolding) way of
exposing Model CRUD via web services.
I found this ticket for django, but nothing for Rails.
http://code.djangoproject.com/ticket/115
Thanks in advance for your opinions and suggestions.
Regards.
--
Surendra Singhi
http://ssinghi.kreeti.com, http://www.kreeti.com
Read my blog at: http://cuttingtheredtape.blogsp...
2006 Jul 27
0
CRUD, REST and associations
...ugh => :subscriptions
end
class Subscription < ActiveRecord::Base
belongs_to :reader
belongs_to :magazine
validates_presence_of :reader, :magazine
end
Now, the nascent RESTful orthodoxy appears to be that for each of these
model classes there ought to be a controller that manages its CRUD
operations. I admit that this has a nice ring to it, alas, it doesn''t
seem to mesh with what I''d like to do user interface-wise. Simply put,
I want to edit and update a reader''s name *and* their subscriptions in
one form. The point is that the user saves (or discards)...
2006 Mar 02
2
custom sql queries beyond CRUD
Hi,
I am just starting of in rails. I am trying to understand the features
of rails and I have this burning question. (and search is not available
now):
Apart from relying on the automatic CRUD sql script produced, is there a
way I can create my own sql script ex: with many joins between exixting
tables (for reporting ). All I need is to declare the custom query and
place the result in a recordset and then to display it somewhere.
Thanks also for any links to documentation that clarifies...
2007 Mar 19
3
controller_name with dynamic controllers
I''m writing a controller which should only be inherited from,
something like the generic crud controller seen here: http://
geekonomics.blogspot.com/2006/07/crud-and-shared-controllers.html
Now, in my spec, I would like to create a controller which inherits
from the generic CRUDController, without actually creating the
controller. This controller is *only* for testing.
How can I do...
2010 Jul 04
3
Generated By handling CRUD Scaffold
Good afternoon.
I have two questions:
First question:
Can be defined at the time that I''m generating the scaffold the size
of
a string?
For example name:string (50)?
Second question:
I wonder how to proceed correctly to include new
fields starting at a CRUD generated by scaffold.
Example:
First step (I use):
script/generate scaffold User name:string login:string
Second step (I add the field "password: string" in the User CRUD,
This field is a password varchar of 50 characters):
Problem --->>> I do not do this modification to add...
2007 Mar 24
0
Using spec fixtures with integration tests
...ing the list at
> rspec-users-owner at rubyforge.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of rspec-users digest..."
>
>
> Today''s Topics:
>
> 1. spec''ing metaprograming & rails CRUD (Scott Taylor)
> 2. Re: State Based vs. Behaviour Based Spec/Testing (David Chelimsky)
> 3. Re: State Based vs. Behaviour Based Spec/Testing (David Chelimsky)
> 4. Re: State Based vs. Behaviour Based Spec/Testing (aslak hellesoy)
> 5. Re: spec''ing metaprograming &am...
2006 Apr 05
0
Providing limited CRUD access to arbitrary tables through a web interface.
...for the first time (used to work with PHP).
I have to provide administrator ("super-user") access to a large number of tables. The access should be available through a web interface (the tables rendered as HTML forms on the browser, probably through HTML tables inside the form). From the CRUD set mostly R(etrieve) and U(pdate) are relevant. However, sometimes the administrator would be allowed to delete rows, and at other times he won''t. Also, he can''t update all columns (for example, can''t change the auto-incrementing id primary key). Important to note that t...
2006 Mar 03
2
newbie scaffold question
I''ve got a database with several tables. I''d like to create scaffolding
for separate CRUD interfaces for several of these tables. I''m hoping
that the scaffold generator can create the CRUD code for all these
tables in ONE controller, but I don''t know how to tell it to do that, if
it can.
Can anyone verify if this is possible?
Thanks,
David
--
Posted via http://...
2005 Dec 21
0
Category/subcategory CRUD
..., rubyonrails, 1, 1
3, PHP, php, 1, 1
4, FAQ, faq, 1, 0
5, Question 1, q1, 1, 4
6, Question 2, q2, 1, 4
And so on....
The PID field denotes the parent category. So, I have a structure like:
Articles
-- Ruby on Rails
-- PHP
FAQ
-- Question 1
-- Question 2
My question is: I created a scaffold for CRUD the categories. How to add
a SELECT tag populated with all categories that doesn''t has the parent
id (pid)?
I want something like:
NEW CATEGORY
----------------
Name: _________
Keyname: _________
[x] Turn this category visible
Parent category: [------------------] <= combobox...
2006 Aug 05
0
Another generic CRUD controller
I''ve been using this template on most of my CRUD controllers.
class CommentsController < ApplicationController
meantime_filter :set_scope
before_filter :find_comment, :only => %w(show edit update destroy)
def index
@comments = Comment.find(:all)
end
def new
@Comment = Comment.new
end
def create
@comment = Comme...
2006 Jul 31
3
Simply_RESTful and Bulk Import URLs
...le I have:
map.resource :person
Now, it''s a little unclear to me how to further configure the routes to
allow me to add the following URLs:
I need a URL to choose a file to upload, so I need an HTML ''frontend''
for it, so I figured the following URL fits into the REST/CRUD paradigm:
/people;bulk_import (using a GET method)
Once I have picked my CSV file, I need to do a POST to perform the
actual bulk import.
Here I was thinking of either:
/people/;bulk_import (using a POST method)
or
/people/bulk_import (using a POST method).
I''m getting a bit confus...
2018 Jun 22
1
Audit CRUD from objects in Active Directory
Hi,
I am testing a samba 4.7.6 as a domain controller. I use RSAT to manage all
users/groups, policies.. I am wondering if it is possible to log all these
events, like: when was a user created, when got one user membership to one
group, etc. I read some wiki pages but still don’t see what I am looking
for in my logs. Do you have any link how is the correct way to achieve this?
Thanks for