similar to: How to make rails reload vendor plugins in dev without restarting the server

Displaying 20 results from an estimated 30000 matches similar to: "How to make rails reload vendor plugins in dev without restarting the server"

2006 Nov 17
4
set empty values as null in the database
Le''s say that I have a table called people and the column middle_name is nullable. If the user enters say blank or empty space then in the database it is recorded as empty space. I would like in all my models all empty spaces to be recorded as null. I guess I can write a plugin which will do so for all the models but I''m sure something like that should already be existing.I
2006 Aug 09
6
How to change the error message easy way
validates_presence_of :fname results in the error message "Fname can''t be blank". What I want is "First Name can''t be blank". I could do this def validate errors.add_to_base("First Name can''t be blank") if fname.blank? end I find this clunky and I have to put everyrhing in the validate method. Is there an easy to get what I want. I
2005 Oct 25
3
How to get the source code for login generator
Hi, I installed login generator using gem. It''s installed and it''s working fine. I wanted to browse the source code of login generator installed by gem. I couldn''t find the source code anywhere. Thanks. -=- Neeraj _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
2006 Jul 26
2
How to highlight the search term in the search result
In the ''basecamp'' product from 37signals if I search for ''ruby'' the I get a bunch of results. In the search result page the search term (ruby in this case) is highlighted. I was wondering how to accomplish the same. How to highlight the ''search term'' in the search result? Is there any already existing utility that I could use? Thanks.
2006 Apr 27
2
How to override pagination_links method
I intend to override pagination_links method. I added following lines of code in application_helper.rb module ActionView module Helpers def pagination_links(paginator, options={}, html_options={}) raise("boom!!") end end end But my code is not executing my code. The view is still using the method pagination_links from rails. What''s the correct way to override
2006 Jul 26
1
How to reload classes in lib/ without restarting server
Hi all, We have a class extending a class from a plugin. We didn''t know where to put it exactly, but the lib/ folder seemed to make sense. Problem is, it doesn''t reload the file for each request, so it makes development mode difficult (have to restart the webserver with every request). Any advice on how to make it reload? Thanks in advance! Cameron -- Posted via
2006 Jan 31
2
Relationship navigation issue
class Event < ActiveRecord::Base belongs_to :venue belongs_to :category end class Venue < ActiveRecord::Base belongs_to :city end class City < ActiveRecord::Base belongs_to :state end I want to retrieve all event records belonging to a state. Coming from hibernate background I tried something like this: def self.list_for_a_state(state_id) find_by_sql(["select e.*
2006 Jul 05
2
How to write get functional test when there is no action by that name
I have following line in route.rb #event info for an event name map.connect ''event/:name_url'',:controller => ''home'',:action => ''event_info'' It causes a URL like http://localhost:3000/event/_jewels_exhibition_ to be sent to the home controller with action as ''event_info''. I am trying to test this action. My first
2006 Apr 17
9
Reload an application without restarting the Server?
Hi, I would like to set up a "shared hosting"-like rails environment on a linux (+Apache1.3 +FastCGI +MySQL) machine. As we all know, rails provides support for different environments. Now I would like to enable my "users" to switch individual applications between development and production mode. In theory, all they have to do is to add
2006 Jan 14
3
How to render from a different controller
My code is something like this. class FirstController < ApplicationController def foo #some processing render (:controller => ''second'', :action => ''index'') end end I tried using both render and redirect but it seems it''s not possible to send the control from within a controller to some other controller. Am I missing something
2005 Oct 14
1
Diff between attr_accessible and attr_accessor
I''m going though the paper back edition of agile development with Rails. On page #128 I encountered following lines of code: attr_accessor :password attr_accessible :name,:password What''s the difference between attr_accessor and attr_accessible? -=- Neeraj _______________________________________________ Rails mailing list
2006 Feb 06
2
how do i reload a module in the vendor directory?
This seems like a fairly straight forward question. I have code in the vendor directory. Any modifications that I make to the code are not respected. My rails app is in development mode so I would expect any require ''code'' to be re-parsed. But this is not occuring... How so? I have a test to post if I need to, but I get the feeling that I am just missing something simple. I
2023 Aug 21
1
...or howto change vfs_acl_xattr options inplace without changing access rights
On 8/21/23 18:20, Sebastian Neustein wrote: > The storage has come a long way with various changes of the smb.conf. It > is possible that at the time of creation of a file/directory > vfs_acl_xattr was not active. This could mean that the directory does > not have any extended attributes written to it and ACLs are only defined > with POSIX ACLs. In this case I would need a
2023 Jun 26
1
NSD reload and restart : in-memory data
Hi, I'm new to NSD and would really appreciate if someone can point me to the right direction. I have like 8 NSD servers (secondary) serving around 30,000 zones. Zone updates are transferred from the primary DNS servers by AXFR/IXFR. The 8 NSD servers do not save the zones file on disk but are only held in memory. Therefore after NSD service is restarted zone transfer requests are being
2011 Sep 21
0
hooking into `to_prepare` in a Railtie *after* the files have been reloaded (in dev)
I''m working on a gem <https://github.com/bradrobertson/apartment> that sets properties on ActiveRecord models (such as table_name) dynamically based on a user config option. I have an initializer that achieves this. My problem however is that in dev mode, these classes are reloaded, so they don''t maintain these values set. So I thought I''d use a railtie to
2011 Oct 28
2
[LLVMdev] [cfe-dev] RFC: Upcoming Build System Changes
On Fri, Oct 28, 2011 at 9:56 AM, Óscar Fuentes <ofv at wanadoo.es> wrote: > Reid Kleckner <reid.kleckner at gmail.com> writes: <snip> > Keep in mind that, if Dan goes ahead his plans, tinkering on any build > system would require knowledge of both of them plus the python > scripts. That's adding complexity, quite a lot. This argument might make sense if you
2011 Oct 28
0
[LLVMdev] [cfe-dev] RFC: Upcoming Build System Changes
Reid Kleckner <reid.kleckner at gmail.com> writes: > While eliminating duplication is one of the goals I see in this build system > change, I think the more important ones are a) simplifying the build files > and b) making the build faster. The "build files" are the Makefiles, right? And Dan's proposal will not make the cmake build any faster. So those goals are
2008 Jan 09
0
vendor/plugins help
Monday I was working in a project and having no problems. Today I fire it up and suddenly none of the items in vendor/plugins are being found. I know I can force it, but I''d rather find the root cause. Any hints as to how to find what broke? Thanks, ~Rob --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups
2011 Oct 28
0
[LLVMdev] [cfe-dev] RFC: Upcoming Build System Changes
Daniel Dunbar <daniel at zuster.org> writes: > On Fri, Oct 28, 2011 at 9:56 AM, Óscar Fuentes <ofv at wanadoo.es> wrote: >> Reid Kleckner <reid.kleckner at gmail.com> writes: > > <snip> > >> Keep in mind that, if Dan goes ahead his plans, tinkering on any build >> system would require knowledge of both of them plus the python >> scripts.
2012 Jul 06
0
Spork doesn't reload 'some' models
Hi everyone. I''ve been using spork+guard+rspec with great happiness in my latest projects, but yesterday I came across to a wired bug I can''t really understand and where I''ve spent the whole morning trying to figure out what was going wrong. Let me explain. I''ve making unit test to my models. When I apply changes to the spec files they are correctly reloaded