search for: _delete

Displaying 9 results from an estimated 9 matches for "_delete".

Did you mean: delete
2010 Feb 06
1
accepts_nested_attributes_for with has_many => :through
...;/h2> <% f.fields_for :tags do |tag_form| %> <p> <%= tag_form.label :name, ''Tag:'' %> <%= tag_form.text_field :name %> </p> <% unless tag_form.object.nil? || tag_form.object.new_record? %> <p> <%= tag_form.label :_delete, ''Remove:'' %> <%= tag_form.check_box :_delete %> </p> <% end %> <% end %> <p> <%= f.submit ''Update'' %> </p> The POST on submit fails with the following error: Tag(#-621698598) expected, got Array(#...
2009 Mar 16
2
nested forms in rails 2.3
Hi, Is there a simpler way to implement the view-component of nested forms as it was done in Railscast #75 (Complex Forms Part 3) in Rails 2.3? I''d like to add and remove the owned objects dynamically using AJAX requests, but using f.fields_for :object do |object_form| doen''t let me load new objects into the form - or at least I don''t fully understand how that should
2011 Nov 04
1
add dynamic nested attributes without nested form gem
...xamples/blob/a234fde4419836f277d7e340657f1d8418911d68/app/helpers/projects_helper.rb but this code doesn''t work module ProjectsHelper def remove_link_unless_new_record(fields) unless fields.object.new_record? out = '''' out << fields.hidden_field(:_delete) out << link_to_function("remove", "$ (this).up(''.#{fields.object.class.name.underscore}'').hide(); $ (this).previous().value = ''1''") out end end end I think that lines which starts with "out <<" make so...
2004 Sep 10
2
libFLAC changes
...would be if someone needed to seek through the input while encoding, which seems like too minor a feature right now. Then I revamped the encoder and decoder interfaces to be a little more object oriented. There are more formal constructors and destructors: *_new() replaces *_get_new_instance(), *_delete() replaces *_free_instance(), and the public read-only variables were moved to protected structures with get methods. So instead of setting the public vars then calling *_init(), you just pass them to *_init() directly. Finally, I changed 'i386' to 'ia32' everywhere, which makes t...
2004 Sep 10
0
libFLAC changes
...ded to seek through the input while encoding, which seems > like too minor a feature right now. > > Then I revamped the encoder and decoder interfaces to be a > little more object oriented. There are more formal constructors > and destructors: *_new() replaces *_get_new_instance(), *_delete() > replaces *_free_instance(), and the public read-only variables > were moved to protected structures with get methods. So instead > of setting the public vars then calling *_init(), you just pass > them to *_init() directly. > > Finally, I changed 'i386' to 'ia32...
2009 Aug 01
0
Nested forms and deleting/removing has_many associations
...llow the user to remove on or more of the associated pictures from the person using nested forms as suggested by Ryan Bates. However delete will delete the picture not remove the associatioon I can do it in the controller, but it should be done in the same way as delete is performed using attribute _delete Anyone knowing if a _remove attribute is implemented or know any other way to solve the problem (e.g. that could be a command allow_remove=true) Another problem is that it seems as nested forms do not validate the attributes of the associated object in this case picture. I have solved the problem...
2004 Sep 10
1
seek problem
Hi Flac developers! I'm using the seekable_stream_decoder API of libFLAC 1.03 and I'm stuck with a mysterious problem: my FLAC plugin works nicely as long as the seek_absolute() function is never used, but as soon as I seek around in a sample (ie. call seek_absolute() with an offset != 0), I cannot detect the end of a file anymore. decoder_get_state() never returns
2009 Apr 03
2
Problem with spacing
...ct> <object class="sizeritem"> <option>0</option> <flag>wxALL</flag> <border>5</border> <object class="wxButton" name="deleteButton"> <label>_Delete Contact</label> <default>0</default> </object> </object> <object class="sizeritem"> <option>0</option> <flag>wxALL</flag> <border>5</borde...
2014 Feb 10
2
/usr/bin/ssh not found when rsync is executed within rsnapshot
...e processing backupuser at debx40:/ /usr/bin/logger -i -p user.err -t rsnapshot /usr/bin/rsnapshot -D hourly: \ ERROR: /usr/bin/rsync returned 12 while processing backupuser at debx40:/ touch /media/extfp/Backup/rsnapshot/test/hourly.0/ No directory to delete: /media/extfp/Backup/rsnapshot/test/_delete.4702 rm -f /var/run/rsnapshot.pid /usr/bin/logger -i -p user.err -t rsnapshot /usr/bin/rsnapshot -D hourly: \ ERROR: /usr/bin/rsnapshot -D hourly: completed, but with some errors I suppose the important info is in that line rsync: Failed to exec /usr/bin/ssh -i /home/backupuser/.ssh/id_rsa: N...