Displaying 20 results from an estimated 1000 matches similar to: "''remember me'' using cookies"
2006 Jul 28
2
Delete has_many_and_belongs_to_many relation
Hi there,
Just a simple question I guess, but I am unable to find an anwser...
How to delete a hmabtm relation?
Any help will be appreciated :)
Thanks,
Fabrice.
--
Posted via http://www.ruby-forum.com/.
2006 Aug 12
5
In place editing on a list - not passing ID through
I want to do in-place edits on a list of data, but I''m having trouble
getting the ID passed through to the controller.
I use this in my view to create the field:
<% for frame in @frames %>
...
<%= in_place_editor_field :frame, :price %>
<% end %>
and this produces the following in my output:
<span class="in_place_editor_field"
2006 Jul 31
2
ambiguous column name in has_many :through
In my application model I have three classes: Accounts, Projects, and Items
class Accounts < ActiveRecord::Base
has_many :items, :through => :projects, :source => :items
has_many :late_items, :class_name => ''Item'', :through => :projects,
:conditions => [''due_on < ?'', Time.now], :source => :items
end
class Projects <
2006 Jul 31
7
Problem with routes when I move the app to a different machine
Hi all:
I have an application that runs great on my macbook pro, however, when
I move the app to the production linux box, all routes fail except for
the one I set up as the default:
map.connect '':controller/:action/:id'', :controller => "Employee",
:action => "status"
I made sure the shebang line in dispatch.* was set to be OS
independent
2006 Jul 31
2
RJS: hide element problem
Hi,
I am trying to hide a "intro" text shown to user the first time after he has
made a search, in the website with RJS/Prototype "hide".
I get the following error:
RJS Error:
Type Error: element has no properties.
The text I would like to hide is in a div called "intro" and in my RJS I
tried:
- page.hide[:intro] as well as
- page.hide ''intro''
2006 Aug 01
1
Getting nil when you want "" (a blank string)
This has got to be something obvious that I am missing...
I have a remote form that has one value that is passed back to the
server from a text field. The form has a set of parameters passed to the
:url key called search_params. When the field is empty and the form is
submitted, I get
:my_val => ""
as expected when I examine the log. All is well with the world.
I need call that
2006 Jul 28
2
change url based on account name
Hi,
Is this possible
Can I specify a url ie
http://localhost/AccountName/:contorller/:action/:id
Where AccountName is should be a userName, which will lookup a siteId in
the database?
Whats the best way of going about this, is there somthing in the
routes.rb file I can change to get the account name into a variable?
Thanks for your help
jon
--
Posted via http://www.ruby-forum.com/.
2006 Jul 28
4
add one month or one year to a date
Hi,
I need to be able to add one month or in some cases on eyear to a Date.
Does anyone know of any easy ways of doing this?
thanks
scott
--
Posted via http://www.ruby-forum.com/.
2006 Jul 28
6
STRFTIME() why is it not defined
I am trying to take the input from a field in wich the user enters a
date, and formatting it to my time format
if params[:gotcha] != ''''
gotc = params[:date].to_a
gotc.strftime("%m/%d/%y")
end
Yet I get this error:
NoMethodError in AddController#add
undefined method `strftime? for ["00000"]
What''s wrong. I''m positive this method is
2006 Jun 24
2
contents of /lib automatically loaded?
I''ve written a simple replacement (not extension) of Ruby''s array class with
some added functionality. I defined it in array.rb and put the file in
rails_root/lib but when i fire up the console the class isn''t being loaded.
How can I have my class automatically loaded and used instead of the built
in Ruby class?
2006 Aug 16
15
OT: finding a designer (bit of a rant)
I''ve written my app already. It outputs valid xhtml and I need a stylesheet
to drop over the top. How hard is it for people to understand that?
It''s a small project, they''d have to do the main design/layout, and then a
little custom styling for some specific elements which don''t appear on every
page. That''s the point of CSS right? write once, use
2005 Jun 06
14
Handling Images And Rails
On my website people will be able to upload images of themselves. I
was wondering how people are presently handling uploading, resizing
and optimizing images in Rails? Do you use a specific piece of
software to do it? What would you guys recommend? Any code from
RailsDay? :-)
Also, do you guys store the images in the DB or just as files? What
do you suggest? What are the pros and
2006 Jun 24
2
gettext and maintenance
hi all
my app has two languages, I''m using gettext to manage them and so far so
good. My question is about maintenance. If I fix a typo in a _() enclosed
string, for example in an rhtml file, then the translated version of that
string will no longer be valid will it? even if the translation itself had
no errors. Is that the case and if so will i be forced to have the _()
string
2006 Apr 25
5
to ajax or not to ajax
before I started building my latest rails app, I made the decision to make
good use of ajax. My reasonsing was that users would benefit from the
quicker page updates - the application provides various different types of
insurance quotes, and has several multi-page forms and reports that can be
drilled down 5 or 6 levels deep in some cases - so it seemed like a good
candidate for ajax
Now
2006 Jul 13
4
why I don''t like to use some 3rd party plugins
I''m not a professional developer in the sense that I''ve had any formal
training or experience. I taught myself programming two years ago and have
since moved to ruby and shortly after to rails - even now, i only develop as
a hobby. This means that a lot of developer best practises are foreign or
unknown to me, that''s why I love rails so much. You learn so much just
2006 Jul 13
3
Validation question
If I am validating an object before it is saved and do a find(:all) of
that object class, will the object which is being validated be returned
by
the find method?
something like:
class Resource < ActiveRecord::Base
def validate
resources = Resource.find(:all)
..do stuff
end
Will the object I am validating be in the ''resources'' array?
Thanks in advance,
Don Mc
--
2006 Apr 02
3
FeedTools syntax question
http://www.mozdex.com/open.jsp?query=webhosting&start=10
in the above feed, can anyone tell me how to access the
openSearch:totalResults element using feed tools? I can access the other
elements, but I''m unsure what special meaning the colon carries or how to
work with such items in feedtools
thanks in advance
al
2006 Jun 19
9
Railsday 2006
Can you guys post a demo of your application ?
Would be great.
Thanks,
Pratik
--
rm -rf / 2>/dev/null - http://null.in
2006 Aug 10
6
Getting started w/ Ruby on Rails
Hi,
I would like to get started with RoR, since it seems to be a terriffic
platform for Webdevelopment. However, I''m unsure what "level" you need
to be on in terms of programming to get started?
Best regards,
Gustav
--
Posted via http://www.ruby-forum.com/.
2015 Sep 21
3
New software based on libvirt
Hello,
I'm introducing to you the decentralized cloud Cherrypop.
Combining libvirt and LizardFS (as of now) it becomes a cloud completely
without masters. Thus, any node is sufficient for the cloud to be up
and therefore no wasted resources and no single point of failure.
It's still pretty crude software but will work with some tinkering. Hope
you try it and like it!
For more