Displaying 12 results from an estimated 12 matches for "_edit".
Did you mean:
edit
2006 Mar 15
1
Strange behaviour of dates
...s AS secondary ON
apps.secondary_id=secondary_id",
:select => "apps.id, contacts.name as primary_name,
contacts.date_of_birth as primary_date_of_birth, secondary.name as
secondary_name, secondary.date_of_birth as secondary_date_of_birth")
end
This line in my _edit.rhtml:
<label for="app_primary_date_of_birth"><b>Date of birth: </b></label><br>
<%= date_select ''app'', ''primary_date_of_birth'', :start_year => 1900 %>
returns:
Showing app/views/app/_edit.rhtml where line #36...
2006 Feb 07
1
Using select with saltedhashlogingenerator
hi, i just got started with rails and am trying to work with the (deep
breath) saltedhashlogingenerator gem in my app.
more specifically, i am trying to generate a select box in my _edit
partial, via:
<%= form_input select(:id, :name, @customers) %>
(i used Customer instead of User when installing the gem into my rails
app) this would appear to be the correct syntax, based on the wiki
documentation for using select. but i get an error:
You have a nil object when you di...
2006 Apr 27
3
LoginEngine File_column interop
...lp me with this issue, I have the SVN
file_column and using LoginEngine/UserEngine with Rails 1.1.2. My
issue is that I''m overloading the view for LoginEngine to support a
file image upload as part of the user record and having a heck of a
time doing so.
Near the bottom of my new _edit.rhtml file I put in:
<tr><td><%= file_field("user", "image_url") %></td></tr>
which now displays the upload field as it should when I go to sign up
a user. I placed in the actual LoginEngine user.rb model the
"file_column :image_url&quo...
2006 Jul 05
1
Newbie SaltedHashLogin add new fields
...h one field so i can se how it
works, after a some time i figure out that i need add a line in the
localize file eng.yml, to see the correct label, and in the signup form
i see the field with the input box for this new field. However in the
edit area the new field does not show, so i review the _edit.rhtml file
and add the line <%= form_input changeable(user, "sex"), "sex" %>
and that show me the label for the sex field however not the input
box, so if some one can give me a clue of how to work this. Thanks
--
Posted via http://www.ruby-forum.com/.
2006 Apr 14
1
SaltedHashLoginGenerator Integration Woes
...''m trying to use the existent helper for user under
app/helpers/user_helper.rb and copied to
app/helpers/userprofiles_helper.rb and prepended prof_ to the names of
the functions to differentiate them.
On the user_controller.rb I added
helper :userprofiles
and modified the app/views/_edit.rhtml to make use of the userprofile
helpers...
I also added: config/environments/userprofile_environment.rb
1 module Userprofiles
2 CONFIG = {
3 # Security token lifetime in hours
4 :security_token_life_hours => 24,
5
6 # Two column form input...
2006 Jun 08
2
LoginEngine: undefined method `generate_security_token''
Hi there,
I''m trying to set up LoginEngine with Rails 1.1.2 on Ruby 1.8.4 on a
Windows XP box and the log is reporting:
undefined method `generate_security_token'' for #<User:0x39436a0>
Rendering user/signup
Rendered user/_edit (0.01600)
Rendered user/_password (0.01600)
Rails appears to be failing on key = @user.generate_security_token in
user_controller.rb in the signup method. The offending block is:
if @user.save
key = @user.generate_security_token
url = url_for(:action => ''...
2009 Feb 03
1
Passing args to generator
I have some default_options in generator and when I wish to change they
value with --option_name I get only logical true instead of string
...
default_options :option_name => "Some string"
...
def add_options!(opt)
opt.separator ''''
opt.separator ''Options:''
opt.on("--option_name","Some Text") { |v| options[:option_name] = v
2006 Jan 03
3
render :partial stops setting local variables.
...n, but
render :partial (or any render for that matter, doesn''t seem to let me set
local variables via the local_assigns argument hash.
for example
<%= render :partial ''edit'', :username => @user.username %>
used to allow that username was a local variable in my _edit.rhtml partial
template.
example:
<p><b>Username:</b> <%= username %></p>
Could this be a problem with Ruby 1.8.4?
--
Sean Wolfe
master nerd of
i heart squares, Co.
3711 N. Ravenswood Ave. #147 Chicago, IL 60613
Ph. (773) 531-6301 Fx. (773) 529-7041
http://www.ihe...
2006 Aug 04
4
DRY DRY DRY
...orm_tag %>
<%= link_to ''Back'', :action => :list %>
...
views/shared/_form.rhtml
...
<%= error_messages_for @model_name.to_sym %>
<!--[form:region]-->
<%= render :partial => ''edit'' %>
<!--[eoform:region]-->
...
views/region/_edit.rhtml
...
<p><label for="region_name">Name</label><br/>
<%= text_field :region, :name %>
</p>
...
This way of doing thigs seems to be the right one.
So if anyone will get this last bit (new/edit) to work please let me
know!
I would appreciate any...
2006 Apr 27
7
RJS & Ajax question...
Hi,
I''m trying to convert an older Rails application to use Ajax. I''ve
already moved my edit and show actions so that, instead of displaying as
separate pages, they appear in a <div> on my list view.
However, I have two problems:
1) When the user saves the changes, I want to put all the ajax changes
in an RJS template. However, form_remote_tag :url =>{:action =>
2007 Apr 28
6
XRC Problem
...<label>_Add</label>
<help>Add a Contact to your contact list...</help>
</object>
<object class="wxMenuItem" name="claoEdit">
<label>_Edit</label>
<help>Edit an existing contact in your Contact
list...</help>
</object>
<object class="wxMenuItem" name="claoRemove">
<label>_Remove</label>...
2011 Jun 23
4
markdown conversions
alan said:
> I think I am in agreement,
> if by "isn't necessary" you mean to say that
> simply providing more features to Markdown
> doesn't force end users to use them,
> or even really know they exist.
except that wasn't what i meant.
i mean that it's not necessary to trade simplicity
in order to get the power of additional