Displaying 20 results from an estimated 1000 matches similar to: "ungenerate / remove scaffold command?"
2006 Feb 01
1
distance_of_time_in_words_to_now with "ago" suffix
I wanted the distance_of_time_in_words_to_now method to have '' ago''
suffixed to it when the date is in the past, I assumed this would be the
default behaviour but apparently not. I know of a REALLY messy way that
i could solve this with, but it''s so ugly I can''t be bothered
Does anybody have an easy, elegant solution?
2009 Jun 03
2
Arc/Info Ungenerate - shp - Maps
Hi list.
I would like to know if someone had already successfully loaded and Arc/Info
Ungenerated (.dat – extracted from
http://rimmer.ngdc.noaa.gov/mgg/coast/getcoast.html) file on R. I’m able to
do so with shape files using maptools functions, but these ungenerated data
are making me crazy.
I don’t have any of ArcGIS tools (one of them probably can do that), and I
can’t find any free tool that
2006 Feb 02
5
access controller var within model
I need to access params[:field_name] from within my Model.
@params[:field_name] isn''t working?
2006 Jan 13
1
Accessing file_column_helper from withing controller
Hi All,
i have i niggly little showstopper -> I need to access
file_column_helper from within the controller, as I need to include an
image in my "pdf-write" code...
Any sane way to do this?
"Require ''rails_file_column''" still gives me an error: "undefined method
`url_for_file_column''..." (I am using *svn* version with Rails 1.0)
2006 Feb 02
1
tricky form validation
Hi list,
I want to create a form validation in my Marketing Model.
I want to raise an error only if a previous marketing campaign for a
property has not been completed (ie. ended_on IS NULL)
I managed to get this working in the Controller using something this:
...
if Marketing.count("property_id = #{@marketing.property_id} AND ended_on
IS NULL") > 0
...
However I assume
2006 Apr 13
7
Whats the best way to achieve this?
employees HABTM projects, projects HABTM employees.
I am doing a permissions page for a selected project. I know that I can
get all of the employees in the system (@employee.find(:all)) or get all
the employees for the selected project.
What i''m trying to do is get a list of all the employees in the system
and have a check box that states if they are associated with the
current
2006 Apr 03
7
Javascript helpers not updating table row in IE6
Trying to replace a table row with an id using both RJS templates and
normal link_to_remote :update. Neither work in IE6, fine in FF etc.
If I use the same code but target a div with an ID it works. This is
tricky as I have a table with edit buttons, when the button is pressed
that row gets updated with a partial containing a form for update. I
need this to work as II don''t fancy
2006 Mar 10
5
case insensitive search
I am having trouble with a simple gallery search.
I type in a segment of the address and i only
seem to be getting results if I use the correct case.
This is in my Gallery controller:
def search
@gallery = Gallery.find(:all, :include => :property,
:conditions => "address LIKE ''%#{@params[:keywords]}%''")
end
On a different note:
I am having
2006 Apr 27
6
How to trim a string?
This must be really simple but I have looked everywhere.
I have a <%= item.description -% in my view and I want to trim it to 10
words.
The description can be long and I want to trim this in my preview?
--
Posted via http://www.ruby-forum.com/.
2006 Mar 28
2
In_place_editor_field throws error ...
I receive the following error:
Called id for nil, which would mistakenly be 4 -- if you really wanted
the id of nil, use object_id
when trying to use the in_place_editor_field tag:
<% for employee in @employees %>
<%= in_place_editor_field :employee, employee.fname %>
<% end %>
My model is called Employee and is being populated from a controller
method employees_list:
2006 Apr 06
2
rails 1.1 - console broken
Have upgraded to rails 1.1 and now ruby script/console does not work.
Throws an error:
c:\work\development\rails\application1>ruby script/console
Loading development environment.
c:/tools/ruby/lib/ruby/1.8/irb/init.rb:151:in `parse_opts'': undefined
method `up
case'' for nil:NilClass (NoMethodError)
from c:/tools/ruby/lib/ruby/1.8/irb/init.rb:19:in `setup''
2006 Feb 19
3
accounts and subdomains
With reference to a previous
post:http://www.ruby-forum.com/topic/55201#new
I would like my app to function as follows:
A new user signs up for my application, his username is "andy". When
andy now logs in to the application the url is redirected to :
http://andy.myapplication.com
Questions:
Is this possible to develop on a windows box with webrick?
Do I need anything special like
2006 Feb 21
11
helper for models?
Is there such a thing?
I have some duplicate methods in my models, can I place them somewhere
and call them in to my models, thus keeping DRY?
--
Posted via http://www.ruby-forum.com/.
2012 Mar 28
2
lapply and paste
I have a list of suffixes I want to turn into file names with extensions.
suff<- c("C1", "C2", "C3")
paste("filename_", suff[[1]], ".ext", sep="")
[1] "filename_C1.ext"
How do I use lapply() on that call to paste()?
What's the right way to do this:
filenames <- lapply(suff, paste, ...)
?
Can I have lapply()
2006 Feb 20
6
LoginGenerator - multiple user types...
I have been looking at the LoginGenerator gem. Looks great and can be
easily modified. However in my app I have two places where people can
login, one is for in my case "employees" the other is for "users". They
are seperate tables in my database and have many different fields.
I have an admin area located at ./sysadmin/ where only "employees" can
login, they
2006 Jul 05
4
Hosting client applications - part time developer
I do web development outside of work and I have three new projects
starting soon from a little brouchureware site to larger applications. I
have a personal hosting account with TextDrive that allows me to run 3
domains, this is not going to be big enough to host the apps for my
clients.
How do other people host Rails sites & apps for their clients? All this
talk of VPS solutions etc
2016 Sep 09
5
[PATCH 0/2] v2v: -i ova: Derive the name from the OVA filename.
Don't use "default", choose a better default name if <Name> is not
present in the OVF.
Rich.
2016 Aug 08
1
[PATCH v2] v2v: disk: strip only common extension (RHBZ#1365005)
In disk input mode, to determine the guest name strip the extension from
the filename only if it's a very well extension for disk images.
---
v2v/input_disk.ml | 18 ++++++++++++++++--
1 file changed, 16 insertions(+), 2 deletions(-)
diff --git a/v2v/input_disk.ml b/v2v/input_disk.ml
index 17ad61d..d56c476 100644
--- a/v2v/input_disk.ml
+++ b/v2v/input_disk.ml
@@ -42,9 +42,23 @@ class
2006 May 29
19
WYSIWYG Editors and Rails
Hi everyone,
I''m currently investigating re-writing our School CMS application in
Rails and the only drawback I can see is there isn''t an ample supply (if
any) of WYSIWYG In-browser editors written with a raw Ruby backend. We
currently use KTML4 which is written with PHP as a base. I''m interested
to hear from anyone who''s integrated a PHP based editor into
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/.