similar to: how to rename the controller classes?

Displaying 20 results from an estimated 300000 matches similar to: "how to rename the controller classes?"

2007 Feb 19
2
help - how to call java classes from controller
hi, I need help to call java classes from the a controller action. I can call a java class from a ruby script, but when I am trying to call in controller, then require ''java'' itself gives me load error. I have java 1.4, jruby 0.9.0 and ruby 1.8.5 installed. I have tried to start server as : jruby script/server but it does not work. In my application I need to use 3rd party
2006 May 01
5
Adding classes without script\generate
Can I add classes to a rails application manually i.e without using script generate Model/Controller? The reason I am asking, I added a class by putting it in the controller class. I can access the class and its method from command-line (irb), but when I try to instantiate it in another controller, I get "uninitialized constant" error. If I try using script\generate Model
2006 Mar 27
9
rename app>controller subfolder crashes app
Help, I changed a folder name in my app>controller from admin to company and now I get a company is not a class error. I do not have any custom routes set and have changed all references to admin, no joy. Does ruby / rails have a cache of the names? -- Posted via http://www.ruby-forum.com/.
2006 Jan 24
1
Renaming controllers
I created a test controller (script/generate controller test) to start a project. During my testing I got to a very advanced state and want to use it in my project. How can I rename the test controller to for example user without having to do it manually? Horacio
2004 Dec 31
2
Am I opening myself to some security vulnerability if I unprotect the Controller classes'' redirect methods?
Am I opening myself to some security vulnerability if I unprotect the Controller classes'' redirect methods? I merrily wrote a (specific to my university) authentication filter as a separate class. As part of the authentication process it needs to re-direct the user to a university server to log in. This all works fine except that the redirect_to methods of a controller are all
2007 Nov 20
3
How to rename image file before saving it using file_column?
Hello, I''m playing with the file_column plugin and I would like to rename the file when uploading it and before saving it to DB. I''ve tried it with before_create method in my model and also in the controller with the following code: @picture = Picture.new(params[:picture]) @picture.filename = ''newname'' Which doesn''t worked. How it could be done (if
2006 Jun 08
1
Permissions on uploaded files, TinyFile
Hi, im getting a little trouble with this, im using TinyFile as the example to upload files http://wiki.rubyonrails.com/rails/pages/TinyFile/versions/20 All goes well but the files uploaded are saved with permissions 600 (linux) and in the case of images arent showed on the browser(but uploaded and stored in the server without problems) i have to manually ftp to the uploaded files folder and
2020 Apr 21
1
[PATCH 2/2] mm/thp: Rename pmd_mknotpresent() as pmd_mknotvalid()
On Tue, Apr 21, 2020 at 04:57:26AM +0530, Anshuman Khandual wrote: > > > On 04/21/2020 02:33 AM, Will Deacon wrote: > > On Fri, Mar 20, 2020 at 10:24:17AM +0530, Anshuman Khandual wrote: > >> pmd_present() is expected to test positive after pmdp_mknotpresent() as the > >> PMD entry still points to a valid huge page in memory. pmdp_mknotpresent() > >>
2009 Aug 13
2
How to rename columns that start with numbers?
Hello, My dataframe has new columns that start with the number 1 or 2 (resulting from a reshape cast command). Instead of having these columns automatically renamed by R so start with the letter X, I would like to rename these columns to start with the characters "SURV_" (e.g., SURV_1, SURV_2). I can't seen to use grep() to identify and rename the columns starting with either 1 or
2006 Jul 23
0
Refactoring or renaming things in Rails
Something nice would be a script/rename or script/refactor which would allow for easy renaming of some model/view/controller or combination, including a db migration if necessary. One does not always start out with a complete understanding of the domain or with the greatest Rails purity and often it is desirable to go back and rename something. Maybe it does not even count as refactoring. I
2020 Apr 20
0
[PATCH 2/2] mm/thp: Rename pmd_mknotpresent() as pmd_mknotvalid()
On 04/21/2020 02:33 AM, Will Deacon wrote: > On Fri, Mar 20, 2020 at 10:24:17AM +0530, Anshuman Khandual wrote: >> pmd_present() is expected to test positive after pmdp_mknotpresent() as the >> PMD entry still points to a valid huge page in memory. pmdp_mknotpresent() >> implies that given PMD entry is just invalidated from MMU perspective while >> still holding on to
2006 Jul 14
3
Accessing the Model class from Controller
Hi, I wonder if there''s an easy way to access the associated Model class from its Controller. Something that would allow me to write snippets like the following: class PeopleController < ApplicationController def some_method person_model_class = self.some_method_to_retrieve_the_person_model_class() end end Cheers, Marco -- Posted via
2006 Jan 26
0
how to rename/label network drives
Hello -- I am running samba 3.0.20b as PDC. The clients are running Windows XP SP2. I have a question about how to rename/label the network drive on the clients. It appears when users login, Windows OS automatically names the mapped drives shown in Windows explorer as sharename & server name & (drive letter), such as public on 'Samba 3.0.21b (pdc.example.com)' (P:).
2015 Dec 11
0
Authentication to Secondary Domain Controller initially fails when PDC is offline
Commented inbetween. > -----Oorspronkelijk bericht----- > Van: samba [mailto:samba-bounces at lists.samba.org] Namens Ole Traupe > Verzonden: vrijdag 11 december 2015 14:59 > Aan: samba at lists.samba.org > Onderwerp: Re: [Samba] Authentication to Secondary Domain Controller > initially fails when PDC is offline > > Hi folks, > > a) thank you all for your help, I
2023 Mar 24
1
make file.rename return invisible
Dear R Core devs, I wonder if it makes sense to make function file.rename return invisible? This is not a big issue, but when running in RMarkdown or knitr, this function will print results. I have to manually call invisible to hide the output from showing in the final document: ```r invisible(file.rename(...)) ``` Otherwise knitr will print: ``` file.rename(...) #> TRUE ``` If this
2006 Apr 20
3
how to use own classes properly
I am using rails just for few days Now i am developing traffic reports for my local network I had to build database queries manualy becouse ActiveRecord does not support selection of multiple sum() fields in silgle query Then i wrote special class QueryBuilder which makes query string from the given conditions (group by, where, additinal fields to select etc). I put QueryBuilder just after my
2010 Aug 25
1
Moving to a new PDC, and if possible, rename the domain name
Hi there. We've had a Samba (version 3.3) server acting as a primary domain controller for about 30 windows PC (XP, vista and 7) for a while. All nice and dandy there. Samba is running on a FreeBSD 8 machine... I would like to migrate this service to a newly acquired Mac mini server , mainly in order to ease maintenance and creation of accounts. Something I like with the 10.6 server
2006 May 17
1
Renaming controllers/views/models
Hi, What would be the best way to rename a controller and associated models/views ? Do we have to do it by hand ? Is there a tool that could help us renaming pluralized words too ? Mickael. On 5/11/06, Ryan Prins <rprins@gmail.com> wrote: > Following up on this, does this delete the associated tests as well and > other items that are created when you do script/generate controller
2007 Apr 22
0
rename error using rebuild_index in console after searching
Hi, I use ruby console to experiment acts_as_ferret, but I ran into file rename error when I try to rebuild index after doing a search. is this normal? I am using Ferret 0.10.9 in windows XP. Loading development environment. >> Address.rebuild_index => {} >> Address.find_by_contents(''US'') => #<ActsAsFerret::SearchResults:0x4f2ffcc @total_hits=2,
2006 Mar 31
11
Model and Controller relationship
My question is about where certain kinds of logic sit in the Model and Controller objects or more specifically the relationship between Model and Controllers. Does an Model class contain a Controller class, the otherway round, or are they two seperate classes that talk? 1. Should the Models be treated as the primary objects within a program and the matching controller is simply a way of