similar to: Renaming controllers/views/models

Displaying 20 results from an estimated 800 matches similar to: "Renaming controllers/views/models"

2007 Dec 15
10
1) Error 2) sending request to a specific worker
Hello ! 1) I have this error logged by bdrb: undefined method `send_request'' for nil:NilClass framework/packet_master.rb:58:in `ask_worker'' backgroundrb/server/master_worker.rb:59:in `process_work'' backgroundrb/server/master_worker.rb:16:in `receive_data'' backgroundrb/framework/bin_parser.rb:29:in `call'' backgroundrb/framework/bin_parser.rb:29:in
2006 May 25
1
AppMailer and McCray''s theme generator
Hi, I am using Matt McCray''s theme generator. http://rubyforge.org/projects/theme-generator/ Everything works fine, but rendering an action in a controller using the AppMailer raises this: undefined method `current_theme'' for #<AppMailer:0x39df950> Is there someone who could help me ? Thanks ! Mickael. Traces:
2006 May 26
7
Instant Rails and your own applications
Hi, I want to make an open source rails project as easy as possible to install. Can I use Instant Rails for this? I treid to look at the FAQ but could not see this was possible. Ideally I would like to have Instant Rails install Ruby, Rails, MySql, etc and then have it add my application and add the mysql user (could be just root also) and then the sql for creating the tables. Sound like fun
2010 Jan 26
7
updated rails now missing rails gem
So i updated rails and this is now what i''m getting. i tried reinstalling rails and it didn''t help. it''s installed. this is driving me nuts. i''m at rails 2.3.5 and ruby 1.8.7 Missing the Rails gem. Please `gem install -v= rails`, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out
2006 Apr 29
1
Display SVN Revision Number in a View
Is it possible to display the SVN revision number in a view? I''d like for this to be done automatically and not something that I''d have to update each time the revision is updated. I know that it is kept in a .svn file or something, but I am curious if anybody out there has done something similar in the past. Thanks, Ryan -- Ryan Prins rprins@gmail.com http://www.lazyi.net
2006 Apr 21
1
Data access problem in object when using acts_as_authenticated
Hi all, I''m running into this frustrating issue with the acts_as_authenticated plugin and one of the additional fields I added to the users table. I have added a column ''account_type'' to the users table (among several others) which denotes the type of account it is. This stores an integer value that is set by the system during account creation. The value is getting set
2006 Feb 27
8
Change Bit Value To Text When Viewed
Hey All, very simple question for you folks ;) I have a @commutes object that for each record there is a bit value set (0/1) to denote if an accident occurred. What I want to do is have it display "Yes" or "No" when I view the listing of commutes. I can get it to display the bit value just fine with <%= commute.accident %> but how can I get it so that when a record with
2007 Dec 12
6
Establish Connection to a xmpp server and keep it !
Hello, (shamelessly adapted to my needs from a old message from this list) I want to integrate status messages over xmpp in my Rails application. My problem is that I do not want to establish a connection to the jabber server each time a message is sent and disconnect the connection afterwards. So I am looking for a solution to establish the connection and use this connection in my controllers
2006 Jun 21
2
error_messages_for not displaying validation errors
Hi all, I''ve been searching the web and the list archives for help on this and I''ve found some tips, but I''ve been racking my brain on this for hours. I have a Model, View, and Controller that are handling the uploading of a file to my server. I want to make sure that the description is set and that a file is selected to be uploaded. I have set validates_presence_of
2006 Apr 18
1
Save item to DB x times (howto)?
Hi All, I have a pretty simple question. I have a view that offers the user the following: 1. A text field to enter in a passphrase 2. Another text field to define how many times that phrase is written to the DB It probably doesn''t make sense for it to be written to the DB x times, but this is the first step in a process and the passphrase will become unique. I currently
2006 May 05
3
OT: Require e-mail during sign up process?
Sorry that this thread is a little off topic, but I''m looking for some varying opinions on the subject and I think this group has a breadth of experience on this matter :) A little background info... the registration process for a web application I am developing will be targeting those ages 13+ with the bulk of the users being in the 13-25 age range. We are in the process of developing
2006 Apr 27
2
check_box_tag and :disabled => ''disabled'' problem
I''ve been using the check_box_tag to generate checkboxes for an application I am working on and I''ve run into a little hiccup. When I set the options for the checkbox to be { :disabled => "disabled" } the checkbox becomes disabled, as I would expect. However, if I set the checked value to true and keep the disabled option, the value for the checkbox is not returned.
2006 Mar 13
3
Convert line breaks to paragraph tags
Hi All! I have a small problem with a data conversion that I am doing from WordPress to a custom app that I am building in rails. In WordPress, line breaks were handled in the PHP code and converted to <p></p>. What I am wondering is, how can I add in the paragraph tags around lines of text (e.g. <p>some text that is line 1</p><p>some text that is line 2</p>
2006 Feb 28
1
Validate two fields so they do not match
Hey all, I have two form fields (select dropdowns) that are ''startlocation'' and ''endlocation''. These two cannot be equal to each other on save and I am wondering how to put validation into the model for this. Is is possible to do it in the model, or do I need to do this in the controller? Thanks in advance! Ryan -- Ryan Prins rprins@gmail.com
2006 Jun 29
9
Handling multiple developers making migrations and using svn
Hey all, I''ve run into an interesting scenario that I think some of you might have some suggestions on. I am currently working on a RoR project and we are making full use of the migrations. We are also using a subversion repository for our source control. Now, the problem.... We are both making migrations and checking them into SVN. So, if in our checkout we have migrations up to 10 and
2006 May 11
18
Object constructors - Noob Question
Hi: Sorry if this is a painfully stupid question... I have some data I need through the life of someone''s session. In the application controller, I grab the data and store it like so: session[:foo] = @foo Now, whenever I need to access data about foo I don''t need to cause any DB io, I can just grab foo from the session (it''s very small fyi). Here''s what I
2006 Apr 25
0
Need help making code more rails like!
Hi all, I''ve been a PHP programmer for many years and I''ve recently picked up ruby and rails and am loving it! However, I''m still learning the "rails way" of doing things and I''ve got a block of code that I think could use a face lift. Any help, tips, suggestions, you can offer in making it more rails-like is greatly appreciated. The only thing that I
2006 May 25
0
Fwd: [ADV] Announcing FamilyAnywhere.com
On May 25, 2006, at 10:01 AM, Jin Lee wrote: > Cool site, Lee family here I come! > I must know how you did those screenshots! That''s some nice AJAX > (right?) > > Good luck, > Jin Lee Like Michael said, it''s Lightbox. Not really "AJAX" per se, but definitely some javascript goodness :) On May 25, 2006, at 9:49 AM, Mickael Faivre-Macon wrote:
2004 Jun 29
1
mandatory profiles, group policies, Samba3 PDC winxp Clients
Hello all, I've been trying to figure out what the best way of doing the group policy thing is. We are running samba 3 on slackware 9 with winxp clients. We are a school. i'm unclear on how much AD is actually supported... OU GPO all that. so i decided to go the "administrative template" way (used to be .pol files) I'm thinking of having the students run off of a
2011 Jan 10
3
sendrpid does not work!
Hello, I have Asterisk 1.6.2.9-2, the directive "sendrpid" does not work! I placed this in my peer: (sip.conf) sendrpid=yes trustrpid=yes or sendrpid=yes trustrpid=no (and restarted Asterisk) and the line "Remote-Party-ID" does not appear in my sip debug! Please help me, Mickael. -------------- next part -------------- An HTML attachment was scrubbed... URL: