Displaying 4 results from an estimated 4 matches for "poll_id".
Did you mean:
poll_in
2006 Mar 19
3
String keys in hash
...;'ve created a hash where the keys are the ids:
@codes = {
''dwNKiItvcyrQ5sycnIhmJablDfXsc9tshaGIVyNIei7.e7'' =>
{:partner_id => 0,
:partner_name => ''sth'',
:page_number => 1},
...
}
Then i do:
poll_id = ''"'' + params[''id''] + ''"''
The problem is, @codes[poll_id] returns nil.
Otherwise, @codes["dwNKiItvcyrQ5sycnIhmJablDfXsc9tshaGIVyNIei7.e7"]
works ok. What am I doing wrong if the keys are the same and explicite
string works...
2018 Sep 09
0
[PATCH net-next v8 5/7] net: vhost: introduce bitmap for vhost_poll
...6,7 @@ void vhost_work_init(struct vhost_work *work, vhost_work_fn_t fn)
> >
> > /* Init poll structure */
> > void vhost_poll_init(struct vhost_poll *poll, vhost_work_fn_t fn,
> > - __poll_t mask, struct vhost_dev *dev)
> > + __u8 poll_id, __poll_t mask, struct vhost_dev *dev)
> > {
> > init_waitqueue_func_entry(&poll->wait, vhost_poll_wakeup);
> > init_poll_funcptr(&poll->table, vhost_poll_func);
> > @@ -194,6 +194,7 @@ void vhost_poll_init(struct vhost_poll *poll, vhost_work_fn_t...
2006 Feb 16
9
rake migrate HANGS
...umn ''question'', :string
table.column ''user_id'', :integer
table.column ''start_time'', :datetime
table.column ''end_time'', :datetime
end
create_table poll_options do |table|
table.column ''poll_id'', :integer
table.column ''option_text'', :string
table.column ''option_order'', :integer
end
execute ''ALTER TABLE poll_options ADD CONSTRAINT fk_polls FOREIGN
KEY ( poll_id ) REFERENCES polls( id ) ''
end
def self...
2008 Nov 19
0
Helpers in lib
...s in a library. I''m
trying to create a custom liquid drop thing which has a form in it (a
poll), and I''m unable to get form_for to work with "vote_poll_path".
Here''s my code for the custom drop (this is in a file in lib):
def render(context)
@vote = Vote.new(:poll_id => @poll.id)
output = "<div class=''poll''><a href=''/polls/#{@poll.id}''>#
{@poll.question}</a>"
output += context.capture(form_for @vote, :url =>
context.vote_poll_path(@vote.poll))
for choice in @poll.choices
output +=...